mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Protector: Bug fix (demote can't use irc.queueMsg if irc is not given).
This commit is contained in:
parent
c06b86b13c
commit
a4653af792
@ -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
|
||||||
|
@ -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)'
|
||||||
|
Loading…
Reference in New Issue
Block a user