Fixed stupid bug in outFilter (* is a special regexp character)

This commit is contained in:
Jeremy Fincher 2003-03-27 09:48:40 +00:00
parent 5e785ba212
commit 4da96fb264

View File

@ -168,7 +168,7 @@ class Relay(privmsgs.CapabilityCheckingPrivmsg):
if msg.command == 'PRIVMSG':
abbreviations = self.abbreviations.values()
rPrivmsg = re.compile(r'<[^@]+@(?:%s)>' % '|'.join(abbreviations))
rAction = re.compile(r'* \w+/(?:%s) ' % '|'.join(abbreviations))
rAction = re.compile(r'\* \w+/(?:%s) ' % '|'.join(abbreviations))
if not (rPrivmsg.match(msg.args[1]) or rAction.match(msg.args[1])):
channel = msg.args[0]
abbreviation = self.abbreviations[irc]