Let ++/-- regexps have whitespace on the end

This commit is contained in:
James Vega 2003-11-14 15:09:30 +00:00
parent 882652ab63
commit 7a9482a176

View File

@ -135,7 +135,7 @@ class Karma(callbacks.PrivmsgCommandAndRegexp, plugins.ChannelDBHandler):
irc.reply(msg, s) irc.reply(msg, s)
def increaseKarma(self, irc, msg, match): def increaseKarma(self, irc, msg, match):
r"^(\S+)\+\+$" r"^(\S+)\+\+(|\s+)$"
name = match.group(1) name = match.group(1)
normalized = name.lower() normalized = name.lower()
db = self.getDb(msg.args[0]) db = self.getDb(msg.args[0])
@ -147,7 +147,7 @@ class Karma(callbacks.PrivmsgCommandAndRegexp, plugins.ChannelDBHandler):
WHERE normalized=%s""", normalized) WHERE normalized=%s""", normalized)
def decreaseKarma(self, irc, msg, match): def decreaseKarma(self, irc, msg, match):
r"^(\S+)--$" r"^(\S+)--(|\s+)$"
name = match.group(1) name = match.group(1)
normalized = name.lower() normalized = name.lower()
db = self.getDb(msg.args[0]) db = self.getDb(msg.args[0])