X-Git-Url: http://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=sid%2Fbts.py;h=254a923cd4afa1658405fa0e984cc20bb99ee499;hp=a19259ae660ee0f52510679ce97e1475348d734c;hb=8d02f7db31a8587f1cd9bb31bcdffd517f6c144e;hpb=bb9811987721c5443ec1b8f23a3bc47ac1604823 diff --git a/sid/bts.py b/sid/bts.py index a19259a..254a923 100644 --- a/sid/bts.py +++ b/sid/bts.py @@ -24,13 +24,16 @@ from .plugin import Plugin, botcmd class Bugs(Plugin): - re_bugs = re_compile('(?<=#)(\d{6,7})') + """Gets bugs info from the BTS + """ + re_bugs = re_compile(r'(?<=#)(\d{6,7})') def __init__(self, bot): Plugin.__init__(self, bot) bot.add_event_handler("muc::%s::message" % self.bot.room, self.muc_message) def muc_message(self, msg): + """Handler method dealing with MUC incoming messages""" # Does not reply to myself if msg['mucnick'] == self.bot.nick: return