From: Valerie Pond Date: Thu, 5 Jan 2023 09:02:34 +0000 (+0000) Subject: Show whether user is a Service X-Git-Tag: 0.9~586 X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/commitdiff_plain/2494eefd4d76461f3e606b21ad5c24b609970482?ds=inline;hp=d0657557e9273c25f440f7116dce7987dc1a5ae5 Show whether user is a Service --- diff --git a/index.php b/index.php index beb4aa1..8cab3bd 100644 --- a/index.php +++ b/index.php @@ -204,6 +204,8 @@ rpc_pop_lists(); $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : ""; echo "".$modes.""; $oper = (isset($user['user']['operlogin'])) ? ''.$user['user']['operlogin']." ".$user['user']['operclass']."" : ""; + if (!strlen($oper)) + $oper = (strpos($user['user']['modes'], "S") !== false) ? 'Service' : ""; echo "".$oper.""; $secure = (isset($user['tls'])) ? "Secure" : "Insecure"; echo "".$secure."";