This commit is contained in:
reality 2015-02-04 17:04:50 +00:00
parent 6adc93f043
commit 5cbb0362c0

View File

@ -23,12 +23,14 @@ var karma = function(dbot) {
this.commands = {
'karma': function(event) {
var item = event.params[1] || event.user;
this.internalAPI.getKarma(event.server, target, function(err, karma) {
this.internalAPI.getKarma(event.server, item, function(err, karma) {
if(karma) {
karma = karma.karma;
event.reply(dbot.t('karma', {
'item': item,
'karma': karma
}));
}
});
},