From: Valerie Pond Date: Mon, 9 Jan 2023 17:50:52 +0000 (+0000) Subject: Ban user with ID and not entire object X-Git-Tag: 0.9~539 X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/commitdiff_plain/20e2fb07a2e69de6a0739b64faff363010c1932f Ban user with ID and not entire object --- diff --git a/users.php b/users.php index 506687e..1ce5e33 100644 --- a/users.php +++ b/users.php @@ -45,7 +45,7 @@ if (!empty($_POST)) $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->serverban()->add($user, $bantype, $duration, $reason)) + if ($rpc->serverban()->add($user->id, $bantype, $duration, $reason)) Message::Success($user->name . " (*@".$user->hostname.") has been $bantype" . "d $msg_msg: $reason"); } }