]> jfr.im git - solanum.git/blobdiff - modules/m_operspy.c
msg: remove last vestiges of the fakelag system. charybdis has never supported fakelag.
[solanum.git] / modules / m_operspy.c
index 0ea5a7f1744d4caa5e760f8f0d8f8ea726241cbb..c5147572e3247b1bea79c0adca8f6c3fa6043f6d 100644 (file)
 #include "modules.h"
 #include "logger.h"
 
-static int ms_operspy(struct Client *client_p, struct Client *source_p,
+static int ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
                      int parc, const char *parv[]);
 
 struct Message operspy_msgtab = {
-       "OPERSPY", 0, 0, 0, MFLG_SLOW,
+       "OPERSPY", 0, 0, 0, 0,
        {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {ms_operspy, 2}, mg_ignore}
 };
 
@@ -61,7 +61,7 @@ DECLARE_MODULE_AV1(operspy, NULL, NULL, operspy_clist, NULL, NULL, "$Revision: 2
  * parv[2] - optional params
  */
 static int
-ms_operspy(struct Client *client_p, struct Client *source_p,
+ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,
           int parc, const char *parv[])
 {
        static char buffer[BUFSIZE];
@@ -87,7 +87,7 @@ ms_operspy(struct Client *client_p, struct Client *source_p,
                        if((size_t)(cur_len + len) >= sizeof(buffer))
                                return 0;
 
-                       rb_snprintf(ptr, sizeof(buffer) - cur_len, "%s ",
+                       snprintf(ptr, sizeof(buffer) - cur_len, "%s ",
                                 parv[i]);
                        ptr += len;
                        cur_len += len;
@@ -98,4 +98,3 @@ ms_operspy(struct Client *client_p, struct Client *source_p,
 
        return 0;
 }
-