Require word boundaries.

This commit is contained in:
Jeremy Fincher 2004-09-16 12:13:59 +00:00
parent 46eab7681a
commit ea078abc57
1 changed files with 1 additions and 1 deletions

View File

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