Commit 173b5c8c authored by mercury233's avatar mercury233

fix deck post

parent a39e9133
......@@ -1359,7 +1359,7 @@ ygopro.stoc_follow 'DUEL_START', false, (buffer, info, client, server)->
fs.writeFile settings.modules.deck_log.local + deck_name + '.ydk', deck_text, 'utf-8', (err) ->
if err
log.warn 'DECK SAVE ERROR', err
if settings.modules.deck_log.post and room.arena
if settings.modules.deck_log.post and (room.arena or not settings.modules.arena_mode.enabled)
request.post { url : settings.modules.deck_log.post , form : {
accesskey: settings.modules.deck_log.accesskey,
deck: deck_text,
......
......@@ -1670,7 +1670,7 @@
}
});
}
if (settings.modules.deck_log.post && room.arena) {
if (settings.modules.deck_log.post && (room.arena || !settings.modules.arena_mode.enabled)) {
request.post({
url: settings.modules.deck_log.post,
form: {
......
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