summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2015-01-24 12:45:15 -0800
committerJesse Morgan <jesse@jesterpm.net>2015-01-24 12:45:15 -0800
commit6f2fc020d89295ddbe4e890c0bbb26c728ddf841 (patch)
tree0136ccd5d19fd5551b0b3b58c71107dc53b9c9a7
parent92af71570ab35143c8edab7f45520408751bf3c6 (diff)
Fixing the cannon to strip spaces from nicks.fix-cannon
-rw-r--r--cannon.py2
1 files changed, 1 insertions, 1 deletions
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]):