From c6014c3902e5df12bcf75591b836ee22e86df249 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Mon, 15 Sep 2014 09:43:13 +0200 Subject: [PATCH] little fix in 'edit' --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index 121eaae..a33df04 100644 --- a/plugin.py +++ b/plugin.py @@ -1158,8 +1158,8 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): b = b and i.edit(irc,item.channel,item.mode,item.value,getDuration(seconds),msg.prefix,self.getDb(irc.network),sf,f,self) else: b = False; - if not sf and duration > 0: - self._schedule(irc,float(time.time())+duration) + if not sf and getDuration(seconds) > 0: + self._schedule(irc,float(time.time())+getDuration(seconds)) if not msg.nick == irc.nick: if b: irc.replySuccess()