+let form = document.getElementById("ban_add_form");
+let submitban =document.getElementById("do_add_ban");
+form.addEventListener("submit", (e) => {
+ let bantype = document.getElementById("ban_type");
+ let banhost = document.getElementById("ban_host");
+ if ((bantype.value === "zline" || bantype.value === "gzline") && banhost.value.includes("@"))
+ {
+ e.preventDefault();
+ document.getElementById("iphost_label").innerHTML = `IP / Host <span class="card alert-danger" style="color:red">Value for (G)Z-Lines MUST be a host or IP.</span>`;
+ }
+});
+