From 0c93c8071ff5ef2517a02fd2b7a371b1e9550347 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 21 Oct 2003 06:36:38 +0000 Subject: [PATCH] Updated to use more generic command names. --- plugins/Enforcer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/Enforcer.py b/plugins/Enforcer.py index a2d3980e1..d8cf4d668 100644 --- a/plugins/Enforcer.py +++ b/plugins/Enforcer.py @@ -52,7 +52,7 @@ def configure(onStart, afterConnect, advanced): revenge = True else: revenge = False - onStart.append('startenforcer %s %s' % (chanserv, revenge)) + onStart.append('enforcer start %s %s' % (chanserv, revenge)) ### # Enforcer: Enforces capabilities on JOIN, MODE, KICK, etc. @@ -60,7 +60,7 @@ def configure(onStart, afterConnect, advanced): _chanCap = ircdb.makeChannelCapability class Enforcer(callbacks.Privmsg): started = False - def startenforcer(self, irc, msg, args): + def start(self, irc, msg, args): """[ ] Starts the Enforcer plugin. is the nick for the chanserv @@ -83,7 +83,7 @@ class Enforcer(callbacks.Privmsg): for channel in irc.state.channels: irc.queueMsg(ircmsgs.topic(channel)) irc.reply(msg, conf.replySuccess) - startenforcer = privmsgs.checkCapability(startenforcer, 'admin') + start = privmsgs.checkCapability(start, 'admin') def doJoin(self, irc, msg): if not self.started: @@ -228,7 +228,7 @@ class Enforcer(callbacks.Privmsg): return callbacks.Privmsg.__call__(self, irc, msg) else: debug.msg('Enforcer plugin not started. ' - 'Give the bot the startenforcer command.', 'normal') + 'Give the bot the start command.', 'normal') Class = Enforcer