Use the hostmask argument isProtected is given instead of trying to use a non-existant variable.

This commit is contained in:
James Vega 2007-10-04 13:00:12 +00:00
parent 74e06ea52a
commit b24eedf596
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ class Protector(callbacks.Plugin):
def isProtected(self, irc, channel, hostmask):
cap = ircdb.makeChannelCapability(channel, 'protected')
if ircdb.checkCapability(msg.prefix, cap):
if ircdb.checkCapability(hostmask, cap):
self.log.debug('%s is protected on %s, it has %s.',
hostmask, channel, cap)
return True