diff --git a/pinhook/bot.py b/pinhook/bot.py index 20384ba..1791101 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -71,7 +71,7 @@ class Bot(irc.bot.SingleServerIRCBot): if cmd: self.cmd = cmd self.arg = arg - if text: + if text != None: self.text = text if not (cmd==None or text==None): raise TypeError('missing cmd or text parameter')