*/
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)))
}
}
+/*
+ * {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.