changes to allow processing other events

master v1.9.6
mallory 2020-12-18 08:43:54 -08:00
parent 5c9278bc63
commit fdca6da624
2 changed files with 5 additions and 2 deletions

View File

@ -1 +1 @@
__version__ = '1.9.5' __version__ = '1.9.6'

View File

@ -249,7 +249,10 @@ class Bot(irc.bot.SingleServerIRCBot):
nick = e.source.nick nick = e.source.nick
if nick == self.bot_nick: if nick == self.bot_nick:
pass pass
if e.arguments:
text = e.arguments[0] text = e.arguments[0]
else:
text = ''
if e.type == 'privmsg' or e.type == 'pubmsg': if e.type == 'privmsg' or e.type == 'pubmsg':
msg_type = 'message' msg_type = 'message'
else: else: