Author: Bleep <helveytw@home.com>
[ircu2.10.12-pk.git] / ircd / s_stats.c
index ad675c539bf5b5fad2817a2479b513a117166d8d..28bac493df412258510a14f3dc7ffcd339fc9ab4 100644 (file)
@@ -134,8 +134,6 @@ void report_configured_links(struct Client *sptr, int mask)
        */
       else if ((tmp->status & CONF_CRULE))
        send_reply(sptr, p[1], c, host, name);
-      else if ((tmp->status & CONF_TLINES))
-       send_reply(sptr, p[1], c, host, pass);
       else if ((tmp->status & CONF_UWORLD))
        send_reply(sptr, p[1], c, host, pass, name, port, get_conf_class(tmp));
       else if ((tmp->status & (CONF_SERVER | CONF_HUB)))
@@ -146,6 +144,16 @@ void report_configured_links(struct Client *sptr, int mask)
   }
 }
 
+/*
+ *  {CONF_TLINES, RPL_STATSTLINE, 'T'},
+ */
+void report_motd_list(struct Client* to)
+{
+  const struct MotdConf* conf = conf_get_motd_list();
+  for ( ; conf; conf = conf->next)
+    send_reply(to, RPL_STATSTLINE, 'T', conf->hostmask, conf->path);
+}
+
 /* m_stats is so obnoxiously full of special cases that the different
  * hunt_server() possiblites were becoming very messy. It now uses a
  * switch() so as to be easier to read and update as params change.