mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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
|
||||
return ircutils.bold(ret)
|
||||
|
||||
_googleRe = re.compile('(google)', re.I)
|
||||
_googleRe = re.compile(r'\b(google)\b', re.I)
|
||||
def outFilter(self, irc, msg):
|
||||
if msg.command == 'PRIVMSG' and \
|
||||
self.registryValue('colorfulFilter', msg.args[0]):
|
||||
|
Loading…
Reference in New Issue
Block a user