From a53819a00d6f93c0d6ec829f31a3629a6ef27fed Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 27 Jan 2004 16:48:41 +0000 Subject: [PATCH] Fixed some bugs left over from registry conversion. --- plugins/Herald.py | 1 + plugins/Karma.py | 2 +- plugins/Python.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Herald.py b/plugins/Herald.py index 1efffcc5a..b93358d2c 100644 --- a/plugins/Herald.py +++ b/plugins/Herald.py @@ -46,6 +46,7 @@ import ircdb import ircmsgs import ircutils import privmsgs +import registry import callbacks diff --git a/plugins/Karma.py b/plugins/Karma.py index f4cca18e8..427eaded2 100644 --- a/plugins/Karma.py +++ b/plugins/Karma.py @@ -215,7 +215,7 @@ class Karma(callbacks.PrivmsgCommandAndRegexp, cursor.execute("""UPDATE karma SET added=added+1 WHERE normalized=%s""", normalized) - if self.registryValue('karmaResponse', msg.args[0]) + if self.registryValue('karmaResponse', msg.args[0]): irc.replySuccess() def decreaseKarma(self, irc, msg, match): diff --git a/plugins/Python.py b/plugins/Python.py index 3b996b606..ad46455c4 100644 --- a/plugins/Python.py +++ b/plugins/Python.py @@ -52,6 +52,7 @@ sys.stdout = StringIO() import this sys.stdout = sys.__stdout__ +import conf import utils import webutils import ircutils