From 8934ebed1dcd64bd39e28849e48c0d74b7956ebf Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 6 Jan 2014 22:36:56 +0000 Subject: [PATCH] use voice auth on alt nick --- modules/command/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/command/api.js b/modules/command/api.js index 2e6ac63..b74637c 100644 --- a/modules/command/api.js +++ b/modules/command/api.js @@ -28,7 +28,7 @@ var api = function(dbot) { .value()); } - if(!_.include(allowedNicks, user.primaryNick)) { + if(!_.include(allowedNicks, user.primaryNick) && !_.include(allowedNicks, user.currentNick)) { callback(false); } else { if(_.has(dbot.modules, 'nickserv') && this.config.useNickserv == true) {