mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
Oops, didn't anchor the no.
This commit is contained in:
parent
8dccee975f
commit
741fc1d8d0
@ -191,7 +191,7 @@ class Infobot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
s = replacement + s[len(contraction):]
|
s = replacement + s[len(contraction):]
|
||||||
return s
|
return s
|
||||||
|
|
||||||
_forceRe = re.compile(r'no[,: -]+', re.I)
|
_forceRe = re.compile(r'^no[,: -]+', re.I)
|
||||||
def doPrivmsg(self, irc, msg):
|
def doPrivmsg(self, irc, msg):
|
||||||
maybeAddressed = callbacks.addressed(irc.nick, msg,
|
maybeAddressed = callbacks.addressed(irc.nick, msg,
|
||||||
whenAddressedByNick=True)
|
whenAddressedByNick=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user