From 93fbfc88c37b26c6bee22a5bb144996ab9c79c10 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Thu, 17 Apr 2014 13:14:08 +0200 Subject: [PATCH] fixed an issue at reconnect with autoExpire --- plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index eb0af1b..14b4625 100644 --- a/plugin.py +++ b/plugin.py @@ -1867,7 +1867,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): item = chan.addItem(mode,value,prefix,float(date),self.getDb(irc.network),False) # added expire date if new modes were added when the bot was offline expire = self.registryValue('autoExpire',channel=item.channel) - if expire > 0 and item.isNew: + if expire > 0 and item.isNew and item.expire != item.when: f = None if self.registryValue('announceBotEdit',channel=item.channel): f = self._logChan @@ -1875,6 +1875,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): i.edit(irc,item.channel,item.mode,item.value,expire,irc.prefix,self.getDb(irc.network),self._schedule,f) item.isNew = False self.forceTickle = True + item.isNew = False def _endList (self,irc,msg,channel,mode): if irc.isChannel(channel) and channel in irc.state.channels: