mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-01 16:01:06 -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)
|
self._tickle(irc)
|
||||||
|
|
||||||
def _isVip (self,irc,channel,n):
|
def _isVip (self,irc,channel,n):
|
||||||
|
protected = ircdb.makeChannelCapability(channel, 'protected')
|
||||||
|
if ircdb.checkCapability(n.prefix, protected):
|
||||||
|
return True
|
||||||
chan = self.getChan(irc,channel)
|
chan = self.getChan(irc,channel)
|
||||||
ignoresModes = self.registryValue('modesToAskWhenOpped',channel=channel)
|
ignoresModes = self.registryValue('modesToAskWhenOpped',channel=channel)
|
||||||
vip = False
|
vip = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user