the thing the thing

This commit is contained in:
reality 2013-10-20 16:41:08 +00:00
parent a2cb958b73
commit 708e3e0b96

View File

@ -32,8 +32,12 @@ var api = function(dbot) {
callback(false); callback(false);
} else { } else {
if(_.has(dbot.modules, 'nickserv') && this.config.useNickserv == true) { 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.currentNick, function(result, primary) {
callback(result); if(result == true && primary == user.primaryNick) {
callback(true);
} else {
callback(false);
}
}); });
} else { } else {
callback(true); callback(true);