]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_stats.c
Fixed another two warnings in m_stats.c
[irc/rqf/shadowircd.git] / modules / m_stats.c
index dd82e417e83715125c3e131976c56f143389c937..df64e797e6a26f9da1cd0598af5af6ec04c9daad 100644 (file)
@@ -443,10 +443,17 @@ stats_exempt(struct Client *source_p)
        }}
 
 
-static void
-stats_events (struct Client *source_p)
-{
-       show_events (source_p);
+static void\r
+stats_events_cb(char *str, void *ptr)\r
+{\r
+       sendto_one_numeric(ptr, RPL_STATSDEBUG, "E :%s", str);\r
+}\r
+\r
+static void\r
+stats_events (struct Client *source_p)\r
+{\r
+       rb_dump_events(stats_events_cb, source_p);\r
+       send_pop_queue(source_p);\r
 }
 
 /* stats_pending_glines()
@@ -1057,7 +1064,7 @@ stats_servers (struct Client *source_p)
                                   target_p->name,
                                   (target_p->serv->by[0] ? target_p->serv->by : "Remote."),
                                   (int) (CurrentTime - target_p->localClient->lasttime),
-                                  (int) linebuf_len (&target_p->localClient->buf_sendq),
+                                  (int) rb_linebuf_len (&target_p->localClient->buf_sendq),
                                   days, (days == 1) ? "" : "s", hours, minutes, 
                                   (int) seconds);
        }