From b589c2dc2b395c3cc9c0bec002b68a550ae8cfcf Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 31 Jan 2013 20:48:16 +0100 Subject: [PATCH] core: Document IrcMsg tags. --- src/ircmsgs.py | 2 ++ 1 file changed, 2 insertions(+) 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):