diff --git a/src/ircmsgs.py b/src/ircmsgs.py index 09759d950..1d355501c 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -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):