Require word boundaries.

This commit is contained in:
Jeremy Fincher 2004-09-16 12:13:59 +00:00
parent 46eab7681a
commit ea078abc57

View File

@ -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]):