mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Require word boundaries.
This commit is contained in:
parent
46eab7681a
commit
ea078abc57
@ -219,7 +219,7 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
self._colorGoogles[s] = ret
|
self._colorGoogles[s] = ret
|
||||||
return ircutils.bold(ret)
|
return ircutils.bold(ret)
|
||||||
|
|
||||||
_googleRe = re.compile('(google)', re.I)
|
_googleRe = re.compile(r'\b(google)\b', re.I)
|
||||||
def outFilter(self, irc, msg):
|
def outFilter(self, irc, msg):
|
||||||
if msg.command == 'PRIVMSG' and \
|
if msg.command == 'PRIVMSG' and \
|
||||||
self.registryValue('colorfulFilter', msg.args[0]):
|
self.registryValue('colorfulFilter', msg.args[0]):
|
||||||
|
Loading…
Reference in New Issue
Block a user