Commit 81ea18b4 authored by nanahira's avatar nanahira

update identity

parent 6b08d3c1
...@@ -141,7 +141,10 @@ ...@@ -141,7 +141,10 @@
}, },
"command": { "command": {
"enabled": false, "enabled": false,
"username": false, "identity": {
"username1": "password1",
"username1": "password2",
},
"command_list": { "command_list": {
"script": { "script": {
"command": "git", "command": "git",
......
...@@ -2033,7 +2033,7 @@ ...@@ -2033,7 +2033,7 @@
} }
break; break;
case '/command': case '/command':
if (settings.modules.command.enabled && (!settings.modules.command.username || settings.modules.command.username === client.name)) { if (settings.modules.command.enabled && (!settings.modules.command.identity || (settings.modules.command.identity[client.name] && settings.modules.command.identity[client.name] === room.name))) {
var cname = cmd[1]; var cname = cmd[1];
if (!cname) { if (!cname) {
ygopro.stoc_send_chat(client, "Please enter the command.", ygopro.constants.COLORS.RED); ygopro.stoc_send_chat(client, "Please enter the command.", ygopro.constants.COLORS.RED);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment