mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +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:
|
if cursor.rowcount == 0:
|
||||||
irc.reply(msg, '%s has no karma.' % name)
|
irc.reply(msg, '%s has no karma.' % name)
|
||||||
else:
|
else:
|
||||||
(added, subtracted) = cursor.fetchone()
|
(added, subtracted) = map(int, cursor.fetchone())
|
||||||
total = added - subtracted
|
total = added - subtracted
|
||||||
irc.reply(msg, '%s\'s karma has been increased %s %s ' \
|
irc.reply(msg, '%s\'s karma has been increased %s %s ' \
|
||||||
'and decreased %s %s for a total karma of %s.' % \
|
'and decreased %s %s for a total karma of %s.' % \
|
||||||
|
Loading…
Reference in New Issue
Block a user