diff --git a/modules/admin.js b/modules/admin.js index 01f1603..507178e 100644 --- a/modules/admin.js +++ b/modules/admin.js @@ -81,8 +81,9 @@ var adminCommands = function(dbot) { return { 'listener': function(data) { - params = data.message.split(' '); + if(data.channel == this.name) data.channel = data.user; + params = data.message.split(' '); if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin) { commands[params[0]](data, params); dbot.save();