From 708e3e0b9686b5ef394fd4e95e38123c587c29a3 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Oct 2013 16:41:08 +0000 Subject: [PATCH] the thing the thing --- modules/command/api.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/command/api.js b/modules/command/api.js index 5a757a5..768c720 100644 --- a/modules/command/api.js +++ b/modules/command/api.js @@ -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);