]> jfr.im git - solanum.git/blobdiff - modules/m_privs.c
msg: remove last vestiges of the fakelag system. charybdis has never supported fakelag.
[solanum.git] / modules / m_privs.c
index f6a32891358bf112bb2628f478ddc6d891fa98a9..9ac1af1a48250d4a5adf884035753e58aebae252 100644 (file)
 #include "s_conf.h"
 #include "s_newconf.h"
 
-static int m_privs(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
-static int me_privs(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
-static int mo_privs(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int m_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int me_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
+static int mo_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 
 struct Message privs_msgtab = {
-       "PRIVS", 0, 0, 0, MFLG_SLOW,
+       "PRIVS", 0, 0, 0, 0,
        {mg_unreg, {m_privs, 0}, mg_ignore, mg_ignore, {me_privs, 0}, {mo_privs, 0}}
 };
 
@@ -58,7 +58,7 @@ mapi_clist_av1 privs_clist[] = {
 struct mode_table
 {
        const char *name;
-       int mode;
+       unsigned int mode;
 };
 
 /* there is no such table like this anywhere else */
@@ -69,6 +69,7 @@ static struct mode_table auth_client_table[] = {
        {"spambot_exempt",      FLAGS2_EXEMPTSPAMBOT    },
        {"shide_exempt",        FLAGS2_EXEMPTSHIDE      },
        {"jupe_exempt",         FLAGS2_EXEMPTJUPE       },
+       {"extend_chans",        FLAGS2_EXTENDCHANS      },
        {NULL, 0}
 };
 
@@ -112,7 +113,7 @@ static void show_privs(struct Client *source_p, struct Client *target_p)
                        target_p->name, buf);
 }
 
-static int me_privs(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+static int me_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        struct Client *target_p;
 
@@ -126,7 +127,7 @@ static int me_privs(struct Client *client_p, struct Client *source_p, int parc,
        return 0;
 }
 
-static int mo_privs(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+static int mo_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        struct Client *target_p;
 
@@ -153,7 +154,7 @@ static int mo_privs(struct Client *client_p, struct Client *source_p, int parc,
        return 0;
 }
 
-static int m_privs(struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
+static int m_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
        if (parc >= 2 && !EmptyString(parv[1]) &&
                        irccmp(parv[1], source_p->name)) {