mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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))
|
total))
|
||||||
|
|
||||||
def increaseKarma(self, irc, msg, match):
|
def increaseKarma(self, irc, msg, match):
|
||||||
r"^(.*?)\+\+"
|
r"^(.*)\+\+$"
|
||||||
debug.printf('increaseKarma')
|
debug.printf('increaseKarma')
|
||||||
name = match.group(1)
|
name = match.group(1)
|
||||||
db = self.getDb(msg.args[0])
|
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)
|
cursor.execute("""UPDATE karma SET added=added+1 WHERE name=%s""",name)
|
||||||
|
|
||||||
def decreaseKarma(self, irc, msg, match):
|
def decreaseKarma(self, irc, msg, match):
|
||||||
r"^(.*?)--"
|
r"^(.*)--$"
|
||||||
debug.printf('decreaseKarma')
|
debug.printf('decreaseKarma')
|
||||||
name = match.group(1)
|
name = match.group(1)
|
||||||
db = self.getDb(msg.args[0])
|
db = self.getDb(msg.args[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user