Update bot.py
This causes the bot to ignore multiple spaces.
This commit is contained in:
parent
e5dc52ae17
commit
a9b63279a6
2
bot.py
2
bot.py
@ -115,7 +115,7 @@ def process_newcomers(bot, newcomerlist, ircsock, welcome=1):
|
|||||||
def parse_messages(ircmsg):
|
def parse_messages(ircmsg):
|
||||||
try:
|
try:
|
||||||
actor = ircmsg.split(":")[1].split("!")[0] # and get the nick of the msg sender
|
actor = ircmsg.split(":")[1].split("!")[0] # and get the nick of the msg sender
|
||||||
return ircmsg, actor
|
return " ".join(ircmsg.split()), actor
|
||||||
except:
|
except:
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user