Fixed bug in identification/doNotice code that would cause an infinite loop if the stupid services on the stupid (coughoftccough) network use a contraction.

This commit is contained in:
Jeremy Fincher 2003-11-25 10:30:58 +00:00
parent 533b6aed81
commit 77393f83ad

View File

@ -102,7 +102,7 @@ class Services(privmsgs.CapabilityCheckingPrivmsg):
do377 = do376
do422 = do376
_owned = re.compile('nick.*(?<!not)(?:registered|protected|owned)')
_owned = re.compile(r'nick.*(?<!n[\'o]t)\s*(?:registered|protected|owned)')
def doNotice(self, irc, msg):
if self.nickserv:
if msg.nick == self.nickserv: