use voice auth on alt nick

This commit is contained in:
reality 2014-01-06 22:36:56 +00:00
parent 62efc4b2b9
commit 8934ebed1d

View File

@ -28,7 +28,7 @@ var api = function(dbot) {
.value()); .value());
} }
if(!_.include(allowedNicks, user.primaryNick)) { if(!_.include(allowedNicks, user.primaryNick) && !_.include(allowedNicks, user.currentNick)) {
callback(false); callback(false);
} else { } else {
if(_.has(dbot.modules, 'nickserv') && this.config.useNickserv == true) { if(_.has(dbot.modules, 'nickserv') && this.config.useNickserv == true) {