Merge pull request #176 from jlu5/patch-1

Show 0 karma in the colour of gold™
This commit is contained in:
jesopo 2019-10-12 07:25:47 +01:00 committed by GitHub
commit 5233ddb20a
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) return utils.irc.color(str(karma), utils.consts.RED)
elif karma > 0: elif karma > 0:
return utils.irc.color(str(karma), utils.consts.LIGHTGREEN) 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") @utils.hook("new.user")
def new_user(self, event): def new_user(self, event):