From 914e86d5671846848475ae58c789a0d8bd62ddea Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Wed, 8 Dec 2010 22:18:46 -0600 Subject: [PATCH] don't try to privmsg (and then crash) if replystr is None --- Module.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Module.py b/Module.py index a4a78f3..262219b 100644 --- a/Module.py +++ b/Module.py @@ -215,10 +215,11 @@ class Module(object): return self.reply(connection, replypath, 'hello') """ - if replypath is None: - return replystr - else: - connection.privmsg(replypath, replystr) + if replystr is not None: + if replypath is None: + return replystr + else: + connection.privmsg(replypath, replystr) def try_recursion(self, connection, event, nick, userhost, replypath, what, admin_unlocked): """