mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed the karma (++/--) regexes
This commit is contained in:
parent
3e58971fe6
commit
edf695aaad
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user