mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Had to do a map(int, ...) thing because sqlite sometimes sucks at that kind of thing.
This commit is contained in:
parent
958bd65b8b
commit
44d4c98dc7
@ -295,7 +295,7 @@ class ChannelDB(callbacks.PrivmsgCommandAndRegexp, ChannelDBHandler):
|
||||
if cursor.rowcount == 0:
|
||||
irc.reply(msg, '%s has no karma.' % name)
|
||||
else:
|
||||
(added, subtracted) = cursor.fetchone()
|
||||
(added, subtracted) = map(int, cursor.fetchone())
|
||||
total = added - subtracted
|
||||
irc.reply(msg, '%s\'s karma has been increased %s %s ' \
|
||||
'and decreased %s %s for a total karma of %s.' % \
|
||||
|
Loading…
Reference in New Issue
Block a user