Author: Ghostwolf <foxxe@wtfs.net>
[ircu2.10.12-pk.git] / ircd / s_stats.c
index e966e46648e456d6fb0d636281ecd6f7f3ba5b59..4b07c81dffe18d0dbf93d855560437c2be331254 100644 (file)
@@ -128,6 +128,14 @@ void report_configured_links(struct Client *sptr, int mask)
        send_reply(sptr, p[1], c, host, pass, name, port, get_conf_class(tmp));
       else if ((tmp->status & (CONF_SERVER | CONF_HUB)))
        send_reply(sptr, p[1], c, "*", name, port, get_conf_class(tmp));
+      else if ((tmp->status & CONF_CLIENT))
+      {
+       if(tmp->passwd && IsDigit(*tmp->passwd) && (!tmp->passwd[1] ||
+           (IsDigit(tmp->passwd[1]) && !tmp->passwd[2])))
+         send_reply(sptr, p[1], c, host, pass, name, port, get_conf_class(tmp));
+       else
+         send_reply(sptr, p[1], c, host, "*", name, port, get_conf_class(tmp));
+      }
       else
        send_reply(sptr, p[1], c, host, name, port, get_conf_class(tmp));
     }