Administrator can now disable misbehaving servers

This commit is contained in:
Jeremy Zhang
2018-01-05 08:52:22 +00:00
parent 6c4b850669
commit bf47f9457c
14 changed files with 253 additions and 6 deletions

View File

@ -16,6 +16,7 @@
/* global linkify */
/* global unauth_captcha_enabled */
/* global soundManager */
/* global disabled */
(function () {
const theme_options = ["DiscordDark", "BetterTitan"]; // All the avaliable theming names
@ -290,6 +291,11 @@
}
});
if (disabled) {
Materialize.toast('This server is currently disabled. If you are an administrator of this server, please get in touch with a TitanEmbeds team member to lift the ban.', 100000);
return;
}
primeEmbed();
setInterval(send_socket_heartbeat, 5000);
if (getParameterByName("username")) {