From fdca6da6243fdb386d08b9b196637b816ae9ce08 Mon Sep 17 00:00:00 2001 From: mallory Date: Fri, 18 Dec 2020 08:43:54 -0800 Subject: [PATCH] changes to allow processing other events --- pinhook/__version__.py | 2 +- pinhook/bot.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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: