Protector: Bug fix (demote can't use irc.queueMsg if irc is not given).

This commit is contained in:
Valentin Lorentz 2011-07-09 13:43:24 +02:00
parent c06b86b13c
commit a4653af792
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ class Protector(callbacks.Plugin):
return True return True
return False return False
def demote(self, channel, nick): def demote(self, irc, channel, nick):
irc.queueMsg(ircmsgs.deop(channel, nick)) irc.queueMsg(ircmsgs.deop(channel, nick))
def __call__(self, irc, msg): def __call__(self, irc, msg):
@ -146,7 +146,7 @@ class Protector(callbacks.Plugin):
irc.queueMsg(ircmsgs.invite(nick, channel)) irc.queueMsg(ircmsgs.invite(nick, channel))
protected.append(nick) protected.append(nick)
if not self.isOp(irc, channel, msg.prefix): if not self.isOp(irc, channel, msg.prefix):
self.demote(channel, msg.nick) self.demote(irc, channel, msg.nick)
Class = Protector Class = Protector

View File

@ -1,3 +1,3 @@
"""stick the various versioning attributes in here, so we only have to change """stick the various versioning attributes in here, so we only have to change
them once.""" them once."""
version = '0.83.4.1+limnoria (2011-07-09T13:42:34+0200)' version = '0.83.4.1+limnoria (2011-07-09T13:43:24+0200)'