mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-08 18:44:06 +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),))
|
return (self.__class__, (str(self),))
|
||||||
|
|
||||||
def tag(self, tag, value=True):
|
def tag(self, tag, value=True):
|
||||||
|
"""Affect a key:value pair to this message."""
|
||||||
self.tags[tag] = value
|
self.tags[tag] = value
|
||||||
|
|
||||||
def tagged(self, tag):
|
def tagged(self, tag):
|
||||||
|
"""Get the value affected to a tag."""
|
||||||
return self.tags.get(tag) # Returns None if it's not there.
|
return self.tags.get(tag) # Returns None if it's not there.
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
|
Loading…
Reference in New Issue
Block a user