mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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)
|
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])
|
||||||
|
Loading…
Reference in New Issue
Block a user