little fix in 'edit'

This commit is contained in:
Nicolas Coevoet 2014-09-15 09:43:13 +02:00
parent 8eb99e4b58
commit c6014c3902

View File

@ -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()