def bug(self, irc, msg, args, bug_string):
     try:
         msg = bug_synopsis(bug_string)
         if msg:
             irc.reply(colourise(msg.for_irc()), prefixNick=False)
     except ValueError:
         irc.reply('Could not parse bug number')
     except Exception, e:
         irc.reply("Error: %s" % e.message)
 def randombug(self, irc, msg, args):
     bug = random.choice(list(TestingRCBugs().get_bugs()))
     msg = "Your randomly chosen squeeze RC bug is: %s. Happy bugfixing!" % bug_synopsis(str(bug)).for_irc()
     irc.reply(colourise(msg))