forked from GitHub/dbot
the thing the thing
This commit is contained in:
parent
a2cb958b73
commit
708e3e0b96
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user