From a1405ef0347433dfa5f01af2191308f90d360184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eli=C3=A1n=20Hanisch?= Date: Thu, 6 Sep 2012 21:05:27 -0300 Subject: [PATCH] revert previous commit and really fix the notification message when opping fails. --- Bantracker/plugin.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Bantracker/plugin.py b/Bantracker/plugin.py index d09b220..9ec3c9c 100644 --- a/Bantracker/plugin.py +++ b/Bantracker/plugin.py @@ -906,12 +906,10 @@ class Bantracker(callbacks.Plugin): del self.pendingReviews[None] def getOp(self, irc, channel): - name = 'Bantracker_getop_%s' % channel - # check if we aren't already waiting for op - if name not in schedule.schedule.events: - msg = ircmsgs.privmsg('Chanserv', "op %s %s" % (channel, irc.nick)) - irc.queueMsg(msg) - schedule.addEvent(lambda: self._getOpFail(irc, channel), 60, name) + msg = ircmsgs.privmsg('Chanserv', "op %s %s" % (channel, irc.nick)) + irc.queueMsg(msg) + schedule.addEvent(lambda: self._getOpFail(irc, channel), time.time() + 60, + 'Bantracker_getop_%s' % channel) def _getOpFail(self, irc, channel): for c in self.registryValue('autoremove.notify.channels', channel):