Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fix a bug where nicks with upper case letters would not count as targ…

  • Loading branch information...
commit b6001c4fb0853b4353c5cc4aeec42258ee2c77e6 1 parent 847a94e
@mythmon mythmon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 hamper/
4 hamper/
@@ -36,9 +36,9 @@ def privmsg(self, user, channel, msg):
directed = msg.startswith(self.nickname)
# This monster of a regex extracts msg and target from a message, where
- # the target may not be there.
+ # the target may not be there, and the target is a valid irc name.
target, msg = re.match(
- r'^(?:([a-z_\-\[\]\\^{}|`][a-z0-9_\-\[\]\\^{}|`]*)[:,] )? *(.*)$',
+ r'^(?:([A-Za-z_\-\[\]\\^{}|`][A-Za-z0-9_\-\[\]\\^{}|`]*)[:,] )? *(.*)$',
if user:

0 comments on commit b6001c4

Please sign in to comment.
Something went wrong with that request. Please try again.