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:
Brian S. Stephan 2010-12-15 20:29:25 -06:00
parent e5934bccba
commit d92d60ec7a

View File

@ -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):
"""