Update bot.py

This causes the bot to ignore multiple spaces.
This commit is contained in:
BananaObserved 2014-09-13 17:13:10 -05:00
parent e5dc52ae17
commit a9b63279a6

2
bot.py
View File

@ -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