From 6f2fc020d89295ddbe4e890c0bbb26c728ddf841 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 24 Jan 2015 12:45:15 -0800 Subject: Fixing the cannon to strip spaces from nicks. --- cannon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cannon.py') diff --git a/cannon.py b/cannon.py index 0911245..3c9191c 100644 --- a/cannon.py +++ b/cannon.py @@ -10,7 +10,7 @@ class Cannon(object): self.firecount = {} def onChanMsg(self, context, user, channel, targetprefix, msg): - matches = re.findall("^!fire\\s+(.*)$", msg) + matches = re.findall("^!fire\\s+(\\S+)", msg) if matches: nickname = matches[0] if any([nickname.lower() == usr.nick.lower() for usr in channel.users]): -- cgit v1.2.3