mirror of
https://github.com/reality/dbot.git
synced 2024-11-23 20:39:25 +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 {
|
||||
'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) {
|
||||
|
Loading…
Reference in New Issue
Block a user