mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
correct routing on admin commands in pm
This commit is contained in:
parent
ada0d56b19
commit
00928e9528
@ -81,8 +81,9 @@ var adminCommands = function(dbot) {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'listener': function(data) {
|
'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) {
|
if(commands.hasOwnProperty(params[0]) && data.user == dbot.admin) {
|
||||||
commands[params[0]](data, params);
|
commands[params[0]](data, params);
|
||||||
dbot.save();
|
dbot.save();
|
||||||
|
Loading…
Reference in New Issue
Block a user