mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Let ++/-- regexps have whitespace on the end
This commit is contained in:
parent
882652ab63
commit
7a9482a176
@ -135,7 +135,7 @@ class Karma(callbacks.PrivmsgCommandAndRegexp, plugins.ChannelDBHandler):
|
||||
irc.reply(msg, s)
|
||||
|
||||
def increaseKarma(self, irc, msg, match):
|
||||
r"^(\S+)\+\+$"
|
||||
r"^(\S+)\+\+(|\s+)$"
|
||||
name = match.group(1)
|
||||
normalized = name.lower()
|
||||
db = self.getDb(msg.args[0])
|
||||
@ -147,7 +147,7 @@ class Karma(callbacks.PrivmsgCommandAndRegexp, plugins.ChannelDBHandler):
|
||||
WHERE normalized=%s""", normalized)
|
||||
|
||||
def decreaseKarma(self, irc, msg, match):
|
||||
r"^(\S+)--$"
|
||||
r"^(\S+)--(|\s+)$"
|
||||
name = match.group(1)
|
||||
normalized = name.lower()
|
||||
db = self.getDb(msg.args[0])
|
||||
|
Loading…
Reference in New Issue
Block a user