From c3613f196ae7bb996a876af589be8edb26b1f063 Mon Sep 17 00:00:00 2001 From: mallory Date: Fri, 18 Dec 2020 09:35:37 -0800 Subject: [PATCH] change message logic --- pinhook/__version__.py | 2 +- pinhook/bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pinhook/__version__.py b/pinhook/__version__.py index 4c3e058..71e0d8e 100644 --- a/pinhook/__version__.py +++ b/pinhook/__version__.py @@ -1 +1 @@ -__version__ = '1.9.6' +__version__ = '1.9.7' diff --git a/pinhook/bot.py b/pinhook/bot.py index 7c7c1c5..20384ba 100644 --- a/pinhook/bot.py +++ b/pinhook/bot.py @@ -73,7 +73,7 @@ class Bot(irc.bot.SingleServerIRCBot): self.arg = arg if text: self.text = text - if not (cmd or text): + if not (cmd==None or text==None): raise TypeError('missing cmd or text parameter') def start_logging(self):