blob: a2e56f47d3440b39f22b6b56e70f01d2f759af0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/**
* Handles the kicked packet
* @param {string} type is it a kick or a ban
* @param {string} reason why
*/
export const handleBans = (type: string, reason: string) => {
document.getElementById("client_error")!.style.display = "flex";
document.getElementById("client_errortext")!.innerHTML =
`${type}:<br>${reason.replace(/\n/g, "<br />")}`;
(<HTMLElement>document.getElementById("client_reconnect")).style.display =
"none";
alert(type + ":\r" + reason);
};
|