mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Fixed stupid bug in outFilter (* is a special regexp character)
This commit is contained in:
parent
5e785ba212
commit
4da96fb264
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user