diff --git a/include/dns.h b/include/dns.h index f5655e16..f433bfe0 100644 --- a/include/dns.h +++ b/include/dns.h @@ -39,7 +39,6 @@ uint16_t lookup_ip(const char *hostname, int aftype, DNSCB callback, void *data) void cancel_lookup(uint16_t xid); void dns_results_callback(const char *callid, const char *status, const char *aftype, const char *results); void dns_stats_results_callback(const char *callid, const char *status, int resc, const char *resv[]); -void report_dns_servers(struct Client *); void init_nameserver_cache(void); #endif diff --git a/ircd/dns.c b/ircd/dns.c index a9fc6539..842e1037 100644 --- a/ircd/dns.c +++ b/ircd/dns.c @@ -316,17 +316,6 @@ get_nameservers_cb(int resc, const char *resv[], int status, void *data) } } -void -report_dns_servers(struct Client *source_p) -{ - rb_dlink_node *n; - - RB_DLINK_FOREACH(n, nameservers.head) - { - sendto_one_numeric(source_p, RPL_STATSDEBUG, "A %s", (char *)n->data); - } -} - void init_nameserver_cache(void) { diff --git a/modules/m_stats.c b/modules/m_stats.c index a2cf3ceb..352cb5e4 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -131,7 +131,7 @@ static void stats_capability(struct Client *); * case only matters in the stats letter column.. -- fl_ */ static struct StatsStruct stats_cmd_table[] = { - /* letter function need_oper need_admin */ + /* letter function need_oper need_admin */ {'a', stats_dns_servers, 1, 1, }, {'A', stats_dns_servers, 1, 1, }, {'b', stats_delay, 1, 1, }, @@ -266,7 +266,12 @@ stats_out: static void stats_dns_servers (struct Client *source_p) { - report_dns_servers (source_p); + rb_dlink_node *n; + + RB_DLINK_FOREACH(n, nameservers.head) + { + sendto_one_numeric(source_p, RPL_STATSDEBUG, "A %s", (char *)n->data); + } } static void