Fix bug in IRC with zero length messages
This commit is contained in:
parent
ad87e88b69
commit
348a27d3df
|
@ -160,8 +160,10 @@ class IRCBot(irc.IRCClient):
|
|||
self.parse(user, host, channel, msg[1:])
|
||||
elif host in self.admins and channel == nick:
|
||||
if len(msg) > 0:
|
||||
if msg.split()[0] != "!":
|
||||
self.parse(user, host, channel, msg)
|
||||
spl = msg.split()
|
||||
if len(spl) > 0:
|
||||
if spl[0] != "!":
|
||||
self.parse(user, host, channel, msg)
|
||||
|
||||
def noticed(self, user, channel, msg):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue