From 6c655cbb73e14803b912fb8b999bb481ac10cc6d Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Sun, 22 Dec 2013 16:36:21 +0100 Subject: [PATCH] better first join performance --- plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin.py b/plugin.py index 41b9e15..713f011 100644 --- a/plugin.py +++ b/plugin.py @@ -194,6 +194,7 @@ def match (pattern,n,irc): def getBestPattern (n,irc): # return best pattern for a given Nick + match(n.prefix,n,irc) results = [] if not n.prefix or not ircutils.isUserHostmask(n.prefix): return [] @@ -999,9 +1000,6 @@ class Nick (object): def setPrefix (self,prefix): if prefix != None and not prefix == self.prefix: self.prefix = prefix - if self.prefix: - # compute ip - matchHostmask(self.prefix,self) return self def setIp (self,ip): @@ -2135,7 +2133,6 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): mode = self.registryValue('%sMode' % kind,channel=channel) duration = self.registryValue('%sDuration' % kind,channel=channel) comment = self.registryValue('%sComment' % kind,channel=channel) - log.debug('found %s %s %s %s %s' % (channel,mode,best,duration,comment)) self._act(irc,channel,mode,best,duration,comment) self.forceTickle = True if removeNick: