Show 0 karma in the colour of gold™

This commit is contained in:
James Lu 2019-10-11 23:23:58 -07:00 committed by GitHub
parent 2ca702b787
commit dda27c1b1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,8 @@ class Module(ModuleManager.BaseModule):
return utils.irc.color(str(karma), utils.consts.RED)
elif karma > 0:
return utils.irc.color(str(karma), utils.consts.LIGHTGREEN)
return str(karma)
else:
return utils.irc.color(str(karma), utils.consts.YELLOW)
@utils.hook("new.user")
def new_user(self, event):