From 6e27f91b6db2e5c02b61d291ae51e88f14c78f48 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Sat, 18 Oct 2014 18:45:57 +0200 Subject: [PATCH] fix few issues with +eI modes when bot won't stay opped --- plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index d26d65d..c1436e7 100644 --- a/plugin.py +++ b/plugin.py @@ -1440,7 +1440,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): b = self._adds(irc,msg,args,channel,'e',items,getDuration(seconds),reason) if not msg.nick == irc.nick and not b: irc.reply('unknown pattern, or pattern already active') - e = wrap(e,['op',commalist('something'),any('getTs'),rest('text')]) + e = wrap(e,['op',commalist('something'),any('getTs',True),rest('text')]) def undo (self, irc, msg, args, channel, mode, items): """[] [] @@ -1899,6 +1899,8 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler): if L[index][0].find ('+') != -1 and mm in self.registryValue('modesToAsk',channel=channel): if mm in self.registryValue('kickMode',channel=channel) or self.registryValue('doActionAgainstAffected',channel=channel): adding = True + if L[index][0].find ('+') != -1 and mm in self.registryValue('modesToAskWhenOpped',channel=channel): + adding = True index = index + 1 # remove duplicates ( should not happens but .. ) S = set(L)