Bump MAXBANS and MAXSILES, bump PATCHLEVEL for release
[ircu2.10.12-pk.git] / ircd / listener.c
index ee6bcc2bd6a6bd55fdfa6a6fb8d30dcb09e673ae..a3c9e93785e2fd3ce4a302c3a3ca99323e9d8d94 100644 (file)
@@ -147,8 +147,12 @@ void show_ports(struct Client* sptr, const struct StatDesc* sd,
       continue;
     len = 0;
     flags[len++] = listener_server(listener) ? 'S' : 'C';
-    if (show_hidden && FlagHas(&listener->flags, LISTEN_HIDDEN))
+    if (FlagHas(&listener->flags, LISTEN_HIDDEN))
+    {
+      if (!show_hidden)
+        continue;
       flags[len++] = 'H';
+    }
     if (FlagHas(&listener->flags, LISTEN_IPV4))
     {
       flags[len++] = '4';