From edf695aaad3297f3aeec452d9bff8e48fc9019a6 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 19 Aug 2003 22:06:07 +0000 Subject: [PATCH] Fixed the karma (++/--) regexes --- plugins/ChannelDB.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ChannelDB.py b/plugins/ChannelDB.py index c0d3fadb0..c8d038d83 100644 --- a/plugins/ChannelDB.py +++ b/plugins/ChannelDB.py @@ -304,7 +304,7 @@ class ChannelDB(callbacks.PrivmsgCommandAndRegexp, ChannelDBHandler): total)) def increaseKarma(self, irc, msg, match): - r"^(.*?)\+\+" + r"^(.*)\+\+$" debug.printf('increaseKarma') name = match.group(1) db = self.getDb(msg.args[0]) @@ -313,7 +313,7 @@ class ChannelDB(callbacks.PrivmsgCommandAndRegexp, ChannelDBHandler): cursor.execute("""UPDATE karma SET added=added+1 WHERE name=%s""",name) def decreaseKarma(self, irc, msg, match): - r"^(.*?)--" + r"^(.*)--$" debug.printf('decreaseKarma') name = match.group(1) db = self.getDb(msg.args[0])