mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Changed msg.prefix to msg.nick in the self.chanserv comparison.
This commit is contained in:
parent
9e0ab0e73b
commit
1e28e4f00a
@ -164,7 +164,7 @@ class Enforcer(callbacks.Privmsg):
|
|||||||
debug.msg('Enforcer not started.', 'normal')
|
debug.msg('Enforcer not started.', 'normal')
|
||||||
return
|
return
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
if not ircutils.isChannel(channel):
|
if not ircutils.isChannel(channel) or msg.nick == self.chanserv:
|
||||||
return
|
return
|
||||||
if msg.nick != irc.nick and\
|
if msg.nick != irc.nick and\
|
||||||
not ircdb.checkCapability(msg.prefix, _chanCap(channel, 'op')):
|
not ircdb.checkCapability(msg.prefix, _chanCap(channel, 'op')):
|
||||||
@ -222,7 +222,7 @@ class Enforcer(callbacks.Privmsg):
|
|||||||
|
|
||||||
def __call__(self, irc, msg):
|
def __call__(self, irc, msg):
|
||||||
if self.started:
|
if self.started:
|
||||||
if msg.prefix != self.chanserv and msg.nick != msg.prefix:
|
if msg.nick != self.chanserv and msg.nick != msg.prefix:
|
||||||
return callbacks.Privmsg.__call__(self, irc, msg)
|
return callbacks.Privmsg.__call__(self, irc, msg)
|
||||||
else:
|
else:
|
||||||
debug.msg('Enforcer plugin not started. '
|
debug.msg('Enforcer plugin not started. '
|
||||||
|
Loading…
Reference in New Issue
Block a user