3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

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 { return {
'listener': function(data) { '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(' '); params = data.message.split(' ');
if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin) { if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin) {