From b21071c38286e5d7fc109f49efc874902f5f2f41 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 2 Apr 2003 08:18:20 +0000 Subject: [PATCH] Fixed bug in load and removed Sorry. --- src/privmsgs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/privmsgs.py b/src/privmsgs.py index 8c3ce51e2..cbe4a3631 100644 --- a/src/privmsgs.py +++ b/src/privmsgs.py @@ -290,12 +290,12 @@ class OwnerCommands(CapabilityCheckingPrivmsg): """ name = getArgs(args) if name in [cb.name() for cb in irc.callbacks]: - irc.error('Sorry, that module is already loaded.') + irc.error(msg, 'That module is already loaded.') return try: moduleInfo = imp.find_module(name) except ImportError: - irc.error(msg, 'Sorry, no plugin %s exists.' % name) + irc.error(msg, 'No plugin %s exists.' % name) return module = imp.load_module(name, *moduleInfo) callback = module.Class() @@ -316,7 +316,7 @@ class OwnerCommands(CapabilityCheckingPrivmsg): try: moduleInfo = imp.find_module(name) except ImportError: - irc.error(msg, 'Sorry, no plugin %s exists.' % name) + irc.error(msg, 'No plugin %s exists.' % name) return module = imp.load_module(name, *moduleInfo) callback = module.Class()