mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 07:34:08 +01:00
core: Document IrcMsg tags.
This commit is contained in:
parent
9507bf1655
commit
b589c2dc2b
@ -196,9 +196,11 @@ class IrcMsg(object):
|
||||
return (self.__class__, (str(self),))
|
||||
|
||||
def tag(self, tag, value=True):
|
||||
"""Affect a key:value pair to this message."""
|
||||
self.tags[tag] = value
|
||||
|
||||
def tagged(self, tag):
|
||||
"""Get the value affected to a tag."""
|
||||
return self.tags.get(tag) # Returns None if it's not there.
|
||||
|
||||
def __getattr__(self, attr):
|
||||
|
Loading…
Reference in New Issue
Block a user