From: Bram Matthys Date: Sun, 16 Apr 2023 16:48:31 +0000 (+0200) Subject: Channel list: show the modes but not the parameters. Like /LIST basically. X-Git-Tag: 0.9~166 X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/commitdiff_plain/cf1f19eae8624abb50d58dee12c258ba469f20f9 Channel list: show the modes but not the parameters. Like /LIST basically. (You still see the parameters on hover, though) --- diff --git a/channels/index.php b/channels/index.php index af8637c..1ca4c62 100644 --- a/channels/index.php +++ b/channels/index.php @@ -34,14 +34,16 @@ $channels = $rpc->channel()->getAll(); echo "name))."\">".htmlspecialchars($channel->name).""; $s = ($channel->num_users) ? "success" : "danger"; echo "".$channel->num_users.""; - $modes = (isset($channel->modes)) ? "+" . $channel->modes : ""; - echo "".htmlspecialchars($modes).""; + $modes = (isset($channel->modes)) ? "+" . explode(" ",$channel->modes)[0] : ""; + echo "". + "modes)."\">". + htmlspecialchars($modes).""; $topic = (isset($channel->topic)) ? htmlspecialchars($channel->topic) : ""; echo "".$topic.""; $date = explode("T", $channel->creation_time)[0]; echo "". "creation_time."\">". - "$date"; + "$date"; echo ""; }