Fix forcing pygmalion on no connection

This commit is contained in:
SillyLossy
2023-03-16 19:40:33 +02:00
parent 2d48a3bd25
commit 4225f217d0

View File

@ -375,7 +375,7 @@ async function getStatus() {
if (online_status == undefined) { if (online_status == undefined) {
online_status = "no_connection"; online_status = "no_connection";
} }
if (online_status.toLowerCase().indexOf("pygmalion") != -1 || force_pygmalion_formatting) { if (online_status.toLowerCase().indexOf("pygmalion") != -1 || (online_status !== "no_connection" && force_pygmalion_formatting)) {
is_pygmalion = true; is_pygmalion = true;
online_status += " (Pyg. formatting on)"; online_status += " (Pyg. formatting on)";
} else { } else {