don't try to privmsg (and then crash) if replystr is None
This commit is contained in:
parent
2690c0208c
commit
914e86d567
|
@ -215,10 +215,11 @@ class Module(object):
|
||||||
return self.reply(connection, replypath, 'hello')
|
return self.reply(connection, replypath, 'hello')
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if replypath is None:
|
if replystr is not None:
|
||||||
return replystr
|
if replypath is None:
|
||||||
else:
|
return replystr
|
||||||
connection.privmsg(replypath, replystr)
|
else:
|
||||||
|
connection.privmsg(replypath, replystr)
|
||||||
|
|
||||||
def try_recursion(self, connection, event, nick, userhost, replypath, what, admin_unlocked):
|
def try_recursion(self, connection, event, nick, userhost, replypath, what, admin_unlocked):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue