Commit a705a79b authored by mercury233's avatar mercury233

only host can add windbot

parent 0f9d7d55
......@@ -2502,7 +2502,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)->
ygopro.stoc_send_random_tip(client) if settings.modules.tips.enabled
when '/ai'
if settings.modules.windbot.enabled
if settings.modules.windbot.enabled and client.is_host
if name = cmd[1]
windbot = _.sample _.filter windbots, (w)->
w.name == name or w.deck == name
......
......@@ -3102,7 +3102,7 @@
}
break;
case '/ai':
if (settings.modules.windbot.enabled) {
if (settings.modules.windbot.enabled && client.is_host) {
if (name = cmd[1]) {
windbot = _.sample(_.filter(windbots, function(w) {
return w.name === name || w.deck === name;
......
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