mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-26 13:01:06 -05:00
very small changes for removal of +q $~a
This commit is contained in:
parent
051a76fa2e
commit
d8acb0b785
@ -4499,6 +4499,7 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
or m in self.registryValue('modesToAskWhenOpped', channel=channel, network=irc.network):
|
or m in self.registryValue('modesToAskWhenOpped', channel=channel, network=irc.network):
|
||||||
toCommit = True
|
toCommit = True
|
||||||
item = chan.removeItem(m, value, msg.prefix, c)
|
item = chan.removeItem(m, value, msg.prefix, c)
|
||||||
|
if item and item.channel == channel:
|
||||||
toremove.append(item)
|
toremove.append(item)
|
||||||
if n:
|
if n:
|
||||||
n.addLog(channel, 'sets %s %s' % (mode, value))
|
n.addLog(channel, 'sets %s %s' % (mode, value))
|
||||||
@ -4598,7 +4599,7 @@ class ChanTracker(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
db.commit()
|
db.commit()
|
||||||
if len(toremove):
|
if len(toremove):
|
||||||
for r in toremove:
|
for r in toremove:
|
||||||
i.verifyRemoval(irc, channel, r.mode, r.value, db, self, r.uid)
|
i.verifyRemoval(irc, r.channel, r.mode, r.value, db, self, r.uid)
|
||||||
if irc.state.channels[channel].isHalfopPlus(irc.nick) \
|
if irc.state.channels[channel].isHalfopPlus(irc.nick) \
|
||||||
and not self.registryValue('keepOp', channel=channel, network=irc.network):
|
and not self.registryValue('keepOp', channel=channel, network=irc.network):
|
||||||
self.forceTickle = True
|
self.forceTickle = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user