mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-04-30 23:41:07 -05:00
added protected capability from supybot to prevent bot to do channel protection against, resolves #2
This commit is contained in:
parent
da896f59da
commit
61cafe9449
@ -2300,7 +2300,9 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
||||
self._tickle(irc)
|
||||
|
||||
def _isVip (self,irc,channel,n):
|
||||
|
||||
protected = ircdb.makeChannelCapability(channel, 'protected')
|
||||
if ircdb.checkCapability(n.prefix, protected):
|
||||
return True
|
||||
chan = self.getChan(irc,channel)
|
||||
ignoresModes = self.registryValue('modesToAskWhenOpped',channel=channel)
|
||||
vip = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user