Oops, didn't anchor the no.

This commit is contained in:
Jeremy Fincher 2004-05-06 20:09:16 +00:00
parent 8dccee975f
commit 741fc1d8d0

View File

@ -191,7 +191,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
s = replacement + s[len(contraction):]
return s
_forceRe = re.compile(r'no[,: -]+', re.I)
_forceRe = re.compile(r'^no[,: -]+', re.I)
def doPrivmsg(self, irc, msg):
maybeAddressed = callbacks.addressed(irc.nick, msg,
whenAddressedByNick=True)