]> jfr.im git - solanum.git/blobdiff - modules/core/m_quit.c
msg: remove last vestiges of the fakelag system. charybdis has never supported fakelag.
[solanum.git] / modules / core / m_quit.c
index 346c49f0f1261c8c7cef1fde292c3ad81d78c193..03ee2759d39cec7462b9c4ac54f02a35029f85b1 100644 (file)
 #include "parse.h"
 #include "modules.h"
 #include "s_conf.h"
-#include "irc_string.h"
+#include "inline/stringops.h"
 
-static int m_quit(struct Client *, struct Client *, int, const char **);
-static int ms_quit(struct Client *, struct Client *, int, const char **);
+static int m_quit(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+static int ms_quit(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 
 struct Message quit_msgtab = {
-       "QUIT", 0, 0, 0, MFLG_SLOW | MFLG_UNREG,
+       "QUIT", 0, 0, 0, 0,
        {{m_quit, 0}, {m_quit, 0}, {ms_quit, 0}, mg_ignore, mg_ignore, {m_quit, 0}}
 };
 
@@ -50,11 +50,10 @@ DECLARE_MODULE_AV1(quit, NULL, NULL, quit_clist, NULL, NULL, "$Revision: 1333 $"
 
 /*
 ** m_quit
-**      parv[0] = sender prefix
 **      parv[1] = comment
 */
 static int
-m_quit(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_quit(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        char *comment = LOCAL_COPY((parc > 1 && parv[1]) ? parv[1] : client_p->name);
        char reason[REASONLEN + 1];
@@ -68,7 +67,7 @@ m_quit(struct Client *client_p, struct Client *source_p, int parc, const char *p
 
        if(ConfigFileEntry.client_exit && comment[0])
        {
-               rb_snprintf(reason, sizeof(reason), "Quit: %s", comment);
+               snprintf(reason, sizeof(reason), "Quit: %s", comment);
                comment = reason;
        }
 
@@ -87,11 +86,10 @@ m_quit(struct Client *client_p, struct Client *source_p, int parc, const char *p
 
 /*
 ** ms_quit
-**      parv[0] = sender prefix
 **      parv[1] = comment
 */
 static int
-ms_quit(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+ms_quit(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        char *comment = LOCAL_COPY((parc > 1 && parv[1]) ? parv[1] : client_p->name);