don't try to be clever with the +-/-+ commands, since it wasn't doing what I wanted
and it wasn't the right thing to do anyway
This commit is contained in:
parent
e5934bccba
commit
d92d60ec7a
@ -117,9 +117,11 @@ class Karma(Module):
|
||||
elif (value == '--'):
|
||||
return self.reply(connection, replypath, self.karma_modify(key, -1, nick, userhost))
|
||||
elif (value == '+-'):
|
||||
return self.reply(connection, replypath, self.karma_modify(key, 1, nick, userhost) + " " + self.karma_modify(key, -1, nick, userhost))
|
||||
self.karma_modify(key, 1, nick, userhost)
|
||||
return self.reply(connection, replypath, self.karma_modify(key, -1, nick, userhost))
|
||||
elif (value == '-+'):
|
||||
return self.reply(connection, replypath, self.karma_modify(key, -1, nick, userhost) + " " + self.karma_modify(key, 1, nick, userhost))
|
||||
self.karma_modify(key, -1, nick, userhost)
|
||||
return self.reply(connection, replypath, self.karma_modify(key, 1, nick, userhost))
|
||||
|
||||
def karma_modify(self, key, value, nick, userhost):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user