added protected capability from supybot to prevent bot to do channel protection against, resolves #2

This commit is contained in:
Nicolas Coevoet 2013-12-20 20:04:44 +01:00
parent da896f59da
commit 61cafe9449

View File

@ -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