Commit f23c0efa authored by nanahira's avatar nanahira

disable_music

parent 5559bb9a
...@@ -2005,6 +2005,7 @@ ...@@ -2005,6 +2005,7 @@
ygopro.stoc_send_chat(client, "${room_name} " + room.name, ygopro.constants.COLORS.BABYBLUE); ygopro.stoc_send_chat(client, "${room_name} " + room.name, ygopro.constants.COLORS.BABYBLUE);
} }
break; break;
/*
case '/music': case '/music':
var music = msg.slice(7); var music = msg.slice(7);
if (settings.modules.music.enabled) { if (settings.modules.music.enabled) {
...@@ -2022,6 +2023,7 @@ ...@@ -2022,6 +2023,7 @@
} }
} }
break; break;
*/
} }
if (msg.length > 100) { if (msg.length > 100) {
log.warn("SPAM WORD", client.name, client.ip, msg); log.warn("SPAM WORD", client.name, client.ip, msg);
...@@ -2490,6 +2492,7 @@ ...@@ -2490,6 +2492,7 @@
return; return;
} }
if (u.query.shout) { if (u.query.shout) {
/*
if (u.query.shout.slice(0, 7) === "/music " && settings.modules.music.enabled) { if (u.query.shout.slice(0, 7) === "/music " && settings.modules.music.enabled) {
var music = u.query.shout.slice(7); var music = u.query.shout.slice(7);
var music_id = music_list[music]; var music_id = music_list[music];
...@@ -2508,7 +2511,7 @@ ...@@ -2508,7 +2511,7 @@
response.end(addCallback(u.query.callback, "['music not found', '" + u.query.shout + "']")); response.end(addCallback(u.query.callback, "['music not found', '" + 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++) {
room = ROOM_all[j]; room = ROOM_all[j];
if (room && room.established) { if (room && room.established) {
...@@ -2518,7 +2521,7 @@ ...@@ -2518,7 +2521,7 @@
response.writeHead(200); response.writeHead(200);
response.end(addCallback(u.query.callback, "['shout ok', '" + u.query.shout + "']")); response.end(addCallback(u.query.callback, "['shout ok', '" + u.query.shout + "']"));
} // }
} else if (u.query.stop) { } else if (u.query.stop) {
if (u.query.stop === 'false') { if (u.query.stop === 'false') {
u.query.stop = false; u.query.stop = false;
......
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