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:
parent
00928e9528
commit
ca14b38087
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user