diff --git a/pinhook/__version__.py b/pinhook/__version__.py index a4f8693..4c3e058 100644 --- a/pinhook/__version__.py +++ b/pinhook/__version__.py @@ -1 +1 @@ -__version__ = '1.9.5' +__version__ = '1.9.6' diff --git a/pinhook/bot.py b/pinhook/bot.py index b2d4fc7..7c7c1c5 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -249,7 +249,10 @@ class Bot(irc.bot.SingleServerIRCBot): nick = e.source.nick if nick == self.bot_nick: pass - text = e.arguments[0] + if e.arguments: + text = e.arguments[0] + else: + text = '' if e.type == 'privmsg' or e.type == 'pubmsg': msg_type = 'message' else: