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);
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user