correction on correct admin pm routing

This commit is contained in:
Luke Slater 2011-10-18 16:57:37 +01:00
parent 00928e9528
commit ca14b38087

View File

@ -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) {