]> jfr.im git - solanum.git/blobdiff - extensions/m_roleplay.c
msg: remove last vestiges of the fakelag system. charybdis has never supported fakelag.
[solanum.git] / extensions / m_roleplay.c
index 73ae621807a2101a8a475461037140f68de90890..3b2f47abaaffec9bd3af1a2082f7b79a5d746172 100644 (file)
 #include "packet.h"
 #include "messages.h"
 
-static int m_scene(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
-static int m_fsay(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
-static int m_faction(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
-static int m_npc(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
-static int m_npca(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
-static int m_displaymsg(struct Client *source_p, const char *channel, int underline, int action, const char *nick, const char *text);
-static int me_roleplay(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int m_scene(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int m_fsay(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int m_faction(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int m_npc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int m_npca(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int m_displaymsg(struct MsgBuf *msgbuf_p, struct Client *source_p, const char *channel, int underline, int action, const char *nick, const char *text);
+static int me_roleplay(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 static unsigned int mymode;
 
 static int
@@ -58,38 +58,38 @@ _moddeinit(void)
 
 
 struct Message scene_msgtab = {
-       "SCENE", 0, 0, 0, MFLG_SLOW,
+       "SCENE", 0, 0, 0, 0,
        {mg_unreg, {m_scene, 3}, mg_ignore, mg_ignore, mg_ignore, {m_scene, 3}}
 };
 
 /* this serves as an alias for people who are used to inspircd/unreal m_roleplay */
 struct Message ambiance_msgtab = {
-       "AMBIANCE", 0, 0, 0, MFLG_SLOW,
+       "AMBIANCE", 0, 0, 0, 0,
        {mg_unreg, {m_scene, 3}, mg_ignore, mg_ignore, mg_ignore, {m_scene, 3}}
 };
 
 struct Message fsay_msgtab = {
-       "FSAY", 0, 0, 0, MFLG_SLOW,
+       "FSAY", 0, 0, 0, 0,
        {mg_unreg, {m_npc, 4}, mg_ignore, mg_ignore, mg_ignore, {m_fsay, 4}}
 };
 
 struct Message faction_msgtab = {
-       "FACTION", 0, 0, 0, MFLG_SLOW,
+       "FACTION", 0, 0, 0, 0,
        {mg_unreg, {m_npca, 4}, mg_ignore, mg_ignore, mg_ignore, {m_faction, 4}}
 };
 
 struct Message npc_msgtab = {
-       "NPC", 0, 0, 0, MFLG_SLOW,
+       "NPC", 0, 0, 0, 0,
        {mg_unreg, {m_npc, 4}, mg_ignore, mg_ignore, mg_ignore, {m_npc, 4}}
 };
 
 struct Message npca_msgtab = {
-       "NPCA", 0, 0, 0, MFLG_SLOW,
+       "NPCA", 0, 0, 0, 0,
        {mg_unreg, {m_npca, 4}, mg_ignore, mg_ignore, mg_ignore, {m_npca, 4}}
 };
 
 struct Message roleplay_msgtab = {
-       "ROLEPLAY", 0, 0, 0, MFLG_SLOW,
+       "ROLEPLAY", 0, 0, 0, 0,
        {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_roleplay, 4}, mg_ignore}
 };
 
@@ -98,42 +98,42 @@ mapi_clist_av1 roleplay_clist[] = { &scene_msgtab, &ambiance_msgtab, &fsay_msgta
 DECLARE_MODULE_AV1(roleplay, _modinit, _moddeinit, roleplay_clist, NULL, NULL, "$m_roleplay$");
 
 static int
-m_scene(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_scene(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
-       m_displaymsg(source_p, parv[1], 0, 0, "=Scene=", parv[2]);
+       m_displaymsg(msgbuf_p, source_p, parv[1], 0, 0, "=Scene=", parv[2]);
        return 0;
 }
 
 static int
-m_fsay(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_fsay(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
-       m_displaymsg(source_p, parv[1], 0, 0, parv[2], parv[3]);
+       m_displaymsg(msgbuf_p, source_p, parv[1], 0, 0, parv[2], parv[3]);
        return 0;
 }
 
 static int
-m_faction(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_faction(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
-       m_displaymsg(source_p, parv[1], 0, 1, parv[2], parv[3]);
+       m_displaymsg(msgbuf_p, source_p, parv[1], 0, 1, parv[2], parv[3]);
        return 0;
 }
 
 static int
-m_npc(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_npc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
-       m_displaymsg(source_p, parv[1], 1, 0, parv[2], parv[3]);
+       m_displaymsg(msgbuf_p, source_p, parv[1], 1, 0, parv[2], parv[3]);
        return 0;
 }
 
 static int
-m_npca(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+m_npca(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
-       m_displaymsg(source_p, parv[1], 1, 1, parv[2], parv[3]);
+       m_displaymsg(msgbuf_p, source_p, parv[1], 1, 1, parv[2], parv[3]);
        return 0;
 }
 
 static int
-m_displaymsg(struct Client *source_p, const char *channel, int underline, int action, const char *nick, const char *text)
+m_displaymsg(struct MsgBuf *msgbuf_p, struct Client *source_p, const char *channel, int underline, int action, const char *nick, const char *text)
 {
        struct Channel *chptr;
        struct membership *msptr;
@@ -212,7 +212,7 @@ m_displaymsg(struct Client *source_p, const char *channel, int underline, int ac
 }
 
 static int
-me_roleplay(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+me_roleplay(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        struct Channel *chptr;