Merge pull request #36 from mhwalsh/master

Causes the bot to ignore multiple spaces
This commit is contained in:
shaunagm 2014-09-17 15:20:13 -04:00
commit 370ab17721
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -115,7 +115,7 @@ def process_newcomers(bot, newcomerlist, ircsock, welcome=1):
def parse_messages(ircmsg):
try:
actor = ircmsg.split(":")[1].split("!")[0] # and get the nick of the msg sender
return ircmsg, actor
return " ".join(ircmsg.split()), actor
except:
return None, None