From 1e28e4f00a2ee344a6aebd80e96125d3743ba70a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 6 Oct 2003 05:57:03 +0000 Subject: [PATCH] Changed msg.prefix to msg.nick in the self.chanserv comparison. --- plugins/Enforcer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Enforcer.py b/plugins/Enforcer.py index ebab85da1..ae5387d46 100644 --- a/plugins/Enforcer.py +++ b/plugins/Enforcer.py @@ -164,7 +164,7 @@ class Enforcer(callbacks.Privmsg): debug.msg('Enforcer not started.', 'normal') return channel = msg.args[0] - if not ircutils.isChannel(channel): + if not ircutils.isChannel(channel) or msg.nick == self.chanserv: return if msg.nick != irc.nick and\ not ircdb.checkCapability(msg.prefix, _chanCap(channel, 'op')): @@ -222,7 +222,7 @@ class Enforcer(callbacks.Privmsg): def __call__(self, irc, msg): 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) else: debug.msg('Enforcer plugin not started. '