$value) { $tok = base64_decode($value); $success = false; $success = $rpc->nameban()->delete($tok); if ($success) Message::Success("Name Ban has been removed for $tok"); else Message::Fail("Unable to remove Name Ban on $tok: $rpc->error"); } } elseif (isset($_POST['tkl_add']) && !empty($_POST['tkl_add'])) { if (!($iphost = $_POST['tkl_add'])) Message::Fail("No mask was specified"); /* duplicate code for now [= */ $banlen_w = (isset($_POST['banlen_w'])) ? $_POST['banlen_w'] : NULL; $banlen_d = (isset($_POST['banlen_d'])) ? $_POST['banlen_d'] : NULL; $banlen_h = (isset($_POST['banlen_h'])) ? $_POST['banlen_h'] : NULL; $duration = ""; if (!$banlen_d && !$banlen_h && !$banlen_w) $duration .= "0"; else { if ($banlen_w) $duration .= $banlen_w; if ($banlen_d) $duration .= $banlen_d; if ($banlen_h) $duration .= $banlen_h; } $msg_msg = ($duration == "0" || $duration == "0w0d0h") ? "permanently" : "for " . rpc_convert_duration_string($duration); $reason = (isset($_POST['ban_reason'])) ? $_POST['ban_reason'] : "No reason"; if ($rpc->nameban()->add($iphost, $reason, $duration)) Message::Success("Name Ban set against \"$iphost\": $reason"); else Message::Fail("Name Ban could not be set against \"$iphost\": $rpc->error"); } elseif (isset($_POST['search_types']) && !empty($_POST['search_types'])) { } } $name_bans = $rpc->nameban()->getAll(); ?>

Name Bans Overview

Here you can essentially forbid the use of a nick or channel name. This is useful to reserve services nicks so they cannot be used by normal users.
You can also forbid the use of channel names. This is useful in such cases where an admin might need to close a channel for reasons relating to their own policy.

set_in_config) && $name_bans->set_in_config) || ($name_bans->set_by == "-config-")) ? true : false; echo ""; if ($set_in_config) echo ""; else echo ""; echo ""; echo ""; echo ""; $set_by = $set_in_config ? "Config" : show_nick_only($name_bans->set_by); echo ""; echo ""; echo ""; echo ""; } ?>
Mask Duration Reason Set By Set On Expires
".$name_bans->name."".$name_bans->duration_string."".$name_bans->reason."".$set_by."".$name_bans->set_at_string."".$name_bans->expire_at_string."