mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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':
|
if msg.command == 'PRIVMSG':
|
||||||
abbreviations = self.abbreviations.values()
|
abbreviations = self.abbreviations.values()
|
||||||
rPrivmsg = re.compile(r'<[^@]+@(?:%s)>' % '|'.join(abbreviations))
|
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])):
|
if not (rPrivmsg.match(msg.args[1]) or rAction.match(msg.args[1])):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
abbreviation = self.abbreviations[irc]
|
abbreviation = self.abbreviations[irc]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user