mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
karma
This commit is contained in:
parent
931d2de4f1
commit
7ad9a5c6a0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user