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