Commit 7a35b6d8 authored by nanahira's avatar nanahira

fix

parent 31b14ae3
...@@ -2006,7 +2006,7 @@ ...@@ -2006,7 +2006,7 @@
var music = msg.slice(7, msg.length -7); var music = msg.slice(7, msg.length -7);
if (settings.modules.music.enabled) { if (settings.modules.music.enabled) {
if (!music || music.length <= 0) { if (!music || music.length <= 0) {
ygopro.stoc_send_hint_music(client 0, 11); ygopro.stoc_send_hint_music(client, 0, 11);
ygopro.stoc_send_chat(client, "${stop_music}", ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat(client, "${stop_music}", ygopro.constants.COLORS.BABYBLUE);
break; break;
} }
...@@ -2503,17 +2503,7 @@ ...@@ -2503,17 +2503,7 @@
} else { } else {
response.writeHead(200); response.writeHead(200);
response.end(addCallback(u.query.callback, "['music not found', '" + music + "']")); response.end(addCallback(u.query.callback, "['music not found', '" + music + "']"));
} }
}
for (j = 0, len = ROOM_all.length; j < len; j++) {
room = ROOM_all[j];
if (room && room.established) {
ygopro.stoc_send_chat_to_room(room, u.query.shout, ygopro.constants.COLORS.YELLOW);
}
}
response.writeHead(200);
response.end(addCallback(u.query.callback, "['shout ok', '" + u.query.shout + "']"));
} else { } else {
for (j = 0, len = ROOM_all.length; j < len; j++) { for (j = 0, len = ROOM_all.length; j < len; j++) {
......
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