From ca14b380871d737acb3594ea69a474372b658d81 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 18 Oct 2011 16:57:37 +0100 Subject: [PATCH] correction on correct admin pm routing --- modules/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin.js b/modules/admin.js index 507178e..4e51e4b 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -81,7 +81,7 @@ var adminCommands = function(dbot) { return { 'listener': function(data) { - if(data.channel == this.name) data.channel = data.user; + if(data.channel == dbot.name) data.channel = data.user; params = data.message.split(' '); if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin) {