diff --git a/modules/command/api.js b/modules/command/api.js index c68d716..88f03af 100644 --- a/modules/command/api.js +++ b/modules/command/api.js @@ -17,7 +17,7 @@ var api = function(dbot) { callback(false); } else { if(_.has(dbot.modules, 'nickserv') && this.config.useNickserv == true) { - dbot.api.nickserv.auth(user.server, user.currentNick, function(result) { + dbot.api.nickserv.auth(user.server, user, function(result) { callback(result); }); } else {