mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-26 21:11:13 -05:00
fix few issues with +eI modes when bot won't stay opped
This commit is contained in:
parent
ed83e93434
commit
6e27f91b6d
@ -1440,7 +1440,7 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
|||||||
b = self._adds(irc,msg,args,channel,'e',items,getDuration(seconds),reason)
|
b = self._adds(irc,msg,args,channel,'e',items,getDuration(seconds),reason)
|
||||||
if not msg.nick == irc.nick and not b:
|
if not msg.nick == irc.nick and not b:
|
||||||
irc.reply('unknown pattern, or pattern already active')
|
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):
|
def undo (self, irc, msg, args, channel, mode, items):
|
||||||
"""[<channel>] <mode> <nick|hostmask|*> [<nick|hostmask|*>]
|
"""[<channel>] <mode> <nick|hostmask|*> [<nick|hostmask|*>]
|
||||||
@ -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 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):
|
if mm in self.registryValue('kickMode',channel=channel) or self.registryValue('doActionAgainstAffected',channel=channel):
|
||||||
adding = True
|
adding = True
|
||||||
|
if L[index][0].find ('+') != -1 and mm in self.registryValue('modesToAskWhenOpped',channel=channel):
|
||||||
|
adding = True
|
||||||
index = index + 1
|
index = index + 1
|
||||||
# remove duplicates ( should not happens but .. )
|
# remove duplicates ( should not happens but .. )
|
||||||
S = set(L)
|
S = set(L)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user