Permalink
Browse files

[INSULT] fix to the special 'me' syntax

  • Loading branch information...
1 parent 8e7d72f commit 4aa2a666ef2b966290118bfbfa06b50577d44e29 @aquarion committed Apr 17, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lampstand/reactions/insult.py
@@ -13,7 +13,7 @@ class Reaction(lampstand.reactions.base.Reaction):
uses = []
def __init__(self, connection):
- self.channelMatch = re.compile('%s. insult (.*)(!?)' % connection.nickname, re.IGNORECASE)
+ self.channelMatch = re.compile('%s. insult (.*)(\W?)' % connection.nickname, re.IGNORECASE)
def channelAction(self, connection, user, channel, message):
@@ -31,6 +31,9 @@ def channelAction(self, connection, user, channel, message):
if insultee.lower() == 'me':
insultee = user
+ orig_insultee = user
+
+ print "[INSULT] Insulting %s" % insultee
if insultee.lower() == 'glados':
print "Kicking %s for taking the name of my lady in vain" % user

0 comments on commit 4aa2a66

Please sign in to comment.