]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Show whether user is a Service
authorValerie Pond <redacted>
Thu, 5 Jan 2023 09:02:34 +0000 (09:02 +0000)
committerValerie Pond <redacted>
Thu, 5 Jan 2023 09:02:34 +0000 (09:02 +0000)
index.php

index beb4aa17124ed3fe8aad472499dc480d8eb19e57..8cab3bdd6fa269281ddf09768353cf8427f99ea0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -204,6 +204,8 @@ rpc_pop_lists();
                        $modes = (isset($user['user']['modes'])) ? "+" . $user['user']['modes'] : "<none>";
                        echo "<td>".$modes."</td>";
                        $oper = (isset($user['user']['operlogin'])) ? '<span class="label">'.$user['user']['operlogin']."</span> <span class=\"label operclass-label\">".$user['user']['operclass']."</span>" : "";
+                       if (!strlen($oper))
+                               $oper = (strpos($user['user']['modes'], "S") !== false) ? '<span class="label operclass-label">Service</span>' : "";
                        echo "<td>".$oper."</td>";
                        $secure = (isset($user['tls'])) ? "<span class=\"label secure-connection\">Secure</span>" : "<span class=\"label noaccount\">Insecure</span>";
                        echo "<td>".$secure."</td>";