From 7ad9a5c6a0e3a82b598331246dba3484fc0955f5 Mon Sep 17 00:00:00 2001 From: reality Date: Wed, 4 Feb 2015 17:07:18 +0000 Subject: [PATCH] karma --- modules/karma/karma.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/karma/karma.js b/modules/karma/karma.js index 2e194cf..4bcfc60 100644 --- a/modules/karma/karma.js +++ b/modules/karma/karma.js @@ -24,7 +24,7 @@ var karma = function(dbot) { 'karma': function(event) { var item = event.params[1] || event.user; this.internalAPI.getKarma(item, function(err, karma) { - if(karma) { + if(!err && karma) { karma = karma.karma; } else { karma = 0;