]> jfr.im git - solanum.git/blobdiff - modules/m_svinfo.c
Show libratbox version info to opers in /info.
[solanum.git] / modules / m_svinfo.c
index d7336eb52e5b4a097ce67bf57dd34324c9f09d46..27ff52570ca951b5154a7479e773f440d96a1483 100644 (file)
@@ -26,7 +26,7 @@
 #include "stdinc.h"
 #include "client.h"
 #include "common.h"            /* TRUE bleah */
-#include "irc_string.h"
+#include "match.h"
 #include "ircd.h"
 #include "numeric.h"
 #include "send.h"
@@ -70,8 +70,8 @@ ms_svinfo(struct Client *client_p, struct Client *source_p, int parc, const char
                /* TS version is too low on one of the sides, drop the link */
                sendto_realops_snomask(SNO_GENERAL, L_ALL,
                                     "Link %s dropped, wrong TS protocol version (%s,%s)",
-                                    get_server_name(source_p, SHOW_IP), parv[1], parv[2]);
-               snprintf(squitreason, sizeof squitreason, "Incompatible TS version (%s,%s)",
+                                    source_p->name, parv[1], parv[2]);
+               rb_snprintf(squitreason, sizeof squitreason, "Incompatible TS version (%s,%s)",
                                parv[1], parv[2]);
                exit_client(source_p, source_p, source_p, squitreason);
                return 0;
@@ -80,7 +80,7 @@ ms_svinfo(struct Client *client_p, struct Client *source_p, int parc, const char
        /*
         * since we're here, might as well set rb_current_time() while we're at it
         */
-       set_time();
+       rb_set_time();
        theirtime = atol(parv[4]);
        deltat = abs(theirtime - rb_current_time());
 
@@ -89,13 +89,13 @@ ms_svinfo(struct Client *client_p, struct Client *source_p, int parc, const char
                sendto_realops_snomask(SNO_GENERAL, L_ALL,
                                     "Link %s dropped, excessive TS delta"
                                     " (my TS=%ld, their TS=%ld, delta=%d)",
-                                    get_server_name(source_p, SHOW_IP),
+                                    source_p->name,
                                     (long) rb_current_time(), (long) theirtime, deltat);
                ilog(L_SERVER,
                     "Link %s dropped, excessive TS delta"
                     " (my TS=%ld, their TS=%ld, delta=%d)",
                     log_client_name(source_p, SHOW_IP), (long) rb_current_time(), (long) theirtime, deltat);
-               snprintf(squitreason, sizeof squitreason, "Excessive TS delta (my TS=%ld, their TS=%ld, delta=%d)",
+               rb_snprintf(squitreason, sizeof squitreason, "Excessive TS delta (my TS=%ld, their TS=%ld, delta=%d)",
                                (long) rb_current_time(), (long) theirtime, deltat);
                exit_client(source_p, source_p, source_p, squitreason);
                return 0;