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): """