From 7baa37a9ef4c66708d7505dfda182339461232cf Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 19 Feb 2016 16:42:40 -0600 Subject: [PATCH] msg: remove last vestiges of the fakelag system. charybdis has never supported fakelag. --- extensions/example_module.c | 2 +- extensions/helpops.c | 2 +- extensions/hurt.c | 4 ++-- extensions/m_42.c | 2 +- extensions/m_adminwall.c | 2 +- extensions/m_echotags.c | 2 +- extensions/m_extendchans.c | 2 +- extensions/m_findforwards.c | 2 +- extensions/m_identify.c | 2 +- extensions/m_mkpasswd.c | 2 +- extensions/m_ojoin.c | 2 +- extensions/m_okick.c | 2 +- extensions/m_omode.c | 2 +- extensions/m_opme.c | 2 +- extensions/m_remove.c | 2 +- extensions/m_roleplay.c | 14 +++++++------- extensions/m_sendbans.c | 2 +- extensions/m_webirc.c | 2 +- include/msg.h | 9 ++------- ircd/modules.c | 10 +++++----- ircd/parse.c | 13 ------------- modules/core/m_ban.c | 2 +- modules/core/m_die.c | 2 +- modules/core/m_error.c | 2 +- modules/core/m_join.c | 4 ++-- modules/core/m_kick.c | 2 +- modules/core/m_kill.c | 2 +- modules/core/m_message.c | 4 ++-- modules/core/m_mode.c | 8 ++++---- modules/core/m_nick.c | 8 ++++---- modules/core/m_part.c | 2 +- modules/core/m_quit.c | 2 +- modules/core/m_server.c | 4 ++-- modules/core/m_squit.c | 2 +- modules/m_accept.c | 2 +- modules/m_admin.c | 2 +- modules/m_away.c | 2 +- modules/m_cap.c | 2 +- modules/m_capab.c | 4 ++-- modules/m_certfp.c | 2 +- modules/m_challenge.c | 2 +- modules/m_chghost.c | 4 ++-- modules/m_close.c | 2 +- modules/m_cmessage.c | 4 ++-- modules/m_connect.c | 2 +- modules/m_dline.c | 4 ++-- modules/m_encap.c | 2 +- modules/m_etrace.c | 6 +++--- modules/m_grant.c | 2 +- modules/m_help.c | 4 ++-- modules/m_info.c | 2 +- modules/m_invite.c | 2 +- modules/m_ison.c | 2 +- modules/m_kline.c | 4 ++-- modules/m_knock.c | 2 +- modules/m_links.c | 2 +- modules/m_list.c | 2 +- modules/m_locops.c | 2 +- modules/m_lusers.c | 2 +- modules/m_map.c | 2 +- modules/m_monitor.c | 2 +- modules/m_motd.c | 2 +- modules/m_names.c | 2 +- modules/m_oper.c | 2 +- modules/m_operspy.c | 2 +- modules/m_pass.c | 2 +- modules/m_ping.c | 2 +- modules/m_pong.c | 2 +- modules/m_post.c | 6 +++--- modules/m_privs.c | 2 +- modules/m_rehash.c | 2 +- modules/m_restart.c | 2 +- modules/m_resv.c | 4 ++-- modules/m_sasl.c | 4 ++-- modules/m_scan.c | 2 +- modules/m_services.c | 8 ++++---- modules/m_set.c | 2 +- modules/m_signon.c | 4 ++-- modules/m_snote.c | 2 +- modules/m_starttls.c | 2 +- modules/m_stats.c | 2 +- modules/m_svinfo.c | 2 +- modules/m_tb.c | 4 ++-- modules/m_testline.c | 4 ++-- modules/m_testmask.c | 2 +- modules/m_tginfo.c | 2 +- modules/m_time.c | 2 +- modules/m_topic.c | 2 +- modules/m_trace.c | 2 +- modules/m_unreject.c | 2 +- modules/m_user.c | 2 +- modules/m_userhost.c | 2 +- modules/m_users.c | 2 +- modules/m_version.c | 2 +- modules/m_wallops.c | 4 ++-- modules/m_who.c | 2 +- modules/m_whois.c | 2 +- modules/m_whowas.c | 2 +- modules/m_xline.c | 4 ++-- 99 files changed, 139 insertions(+), 157 deletions(-) diff --git a/extensions/example_module.c b/extensions/example_module.c index 4d88f3908..d08e9ff9c 100644 --- a/extensions/example_module.c +++ b/extensions/example_module.c @@ -52,7 +52,7 @@ struct Message test_msgtab = { 0, /* SET TO ZERO -- number of times command used by clients */ 0, /* SET TO ZERO -- number of times command used by clients */ 0, /* SET TO ZERO -- number of times command used by clients */ - MFLG_SLOW, /* ALWAYS SET TO MFLG_SLOW */ + 0, /* ALWAYS SET TO 0 */ /* the functions to call for each handler. If not using the generic * handlers, the first param is the function to call, the second is the diff --git a/extensions/helpops.c b/extensions/helpops.c index 6238adefb..2dad817ca 100644 --- a/extensions/helpops.c +++ b/extensions/helpops.c @@ -37,7 +37,7 @@ mapi_hfn_list_av1 helpops_hfnlist[] = { static int UMODE_HELPOPS = 0; struct Message dehelper_msgtab = { - "DEHELPER", 0, 0, 0, MFLG_SLOW, + "DEHELPER", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_not_oper, mg_ignore, {me_dehelper, 2}, {mo_dehelper, 2}} }; diff --git a/extensions/hurt.c b/extensions/hurt.c index a12041f18..beb2ada27 100644 --- a/extensions/hurt.c +++ b/extensions/hurt.c @@ -84,14 +84,14 @@ rb_dlink_list hurt_confs = { NULL, NULL, 0 }; /* {{{ Messages */ struct Message hurt_msgtab = { - "HURT", 0, 0, 0, MFLG_SLOW, { + "HURT", 0, 0, 0, 0, { mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_hurt, 0}, {mo_hurt, 3} } }; struct Message heal_msgtab = { - "HEAL", 0, 0, 0, MFLG_SLOW, { + "HEAL", 0, 0, 0, 0, { mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_heal, 0}, {mo_heal, 2} } diff --git a/extensions/m_42.c b/extensions/m_42.c index e30fb267e..59fc5d98e 100644 --- a/extensions/m_42.c +++ b/extensions/m_42.c @@ -14,7 +14,7 @@ static int mclient_42(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message hgtg_msgtab = { - "42", 0, 0, 0, MFLG_SLOW, + "42", 0, 0, 0, 0, { mg_ignore, {mclient_42, 0}, mg_ignore, mg_ignore, mg_ignore, {mclient_42, 0} } }; diff --git a/extensions/m_adminwall.c b/extensions/m_adminwall.c index dd423b16b..53cf0f29c 100644 --- a/extensions/m_adminwall.c +++ b/extensions/m_adminwall.c @@ -43,7 +43,7 @@ static int mo_adminwall(struct MsgBuf *, struct Client *, struct Client *, int, static int me_adminwall(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message adminwall_msgtab = { - "ADMINWALL", 0, 0, 0, MFLG_SLOW, + "ADMINWALL", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_adminwall, 2}, {mo_adminwall, 2}} }; diff --git a/extensions/m_echotags.c b/extensions/m_echotags.c index 982f72c03..dd363d43f 100644 --- a/extensions/m_echotags.c +++ b/extensions/m_echotags.c @@ -7,7 +7,7 @@ static int m_echotags(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message echotags_msgtab = { - "ECHOTAGS", 0, 0, 0, MFLG_SLOW, + "ECHOTAGS", 0, 0, 0, 0, { mg_ignore, {m_echotags, 0}, mg_ignore, mg_ignore, mg_ignore, {m_echotags, 0} } }; diff --git a/extensions/m_extendchans.c b/extensions/m_extendchans.c index c5326e8dd..1db67e8b1 100644 --- a/extensions/m_extendchans.c +++ b/extensions/m_extendchans.c @@ -35,7 +35,7 @@ static int mo_extendchans(struct MsgBuf *, struct Client *, struct Client *, int static int me_extendchans(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message extendchans_msgtab = { - "EXTENDCHANS", 0, 0, 0, MFLG_SLOW, + "EXTENDCHANS", 0, 0, 0, 0, { mg_unreg, mg_ignore, mg_ignore, mg_ignore, {me_extendchans, 2}, {mo_extendchans, 2}} }; diff --git a/extensions/m_findforwards.c b/extensions/m_findforwards.c index d27798154..36cbb76c7 100644 --- a/extensions/m_findforwards.c +++ b/extensions/m_findforwards.c @@ -40,7 +40,7 @@ static int m_findforwards(struct MsgBuf *msgbuf_p, struct Client *client_p, stru int parc, const char *parv[]); struct Message findforwards_msgtab = { - "FINDFORWARDS", 0, 0, 0, MFLG_SLOW, + "FINDFORWARDS", 0, 0, 0, 0, {mg_unreg, {m_findforwards, 2}, mg_ignore, mg_ignore, mg_ignore, {m_findforwards, 2}} }; diff --git a/extensions/m_identify.c b/extensions/m_identify.c index 5ac5cada3..d2471a294 100644 --- a/extensions/m_identify.c +++ b/extensions/m_identify.c @@ -52,7 +52,7 @@ static int m_identify(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message identify_msgtab = { - "IDENTIFY", 0, 0, 0, MFLG_SLOW, + "IDENTIFY", 0, 0, 0, 0, {mg_unreg, {m_identify, 0}, mg_ignore, mg_ignore, mg_ignore, {m_identify, 0}} }; diff --git a/extensions/m_mkpasswd.c b/extensions/m_mkpasswd.c index 147a4634a..d1ffaf01d 100644 --- a/extensions/m_mkpasswd.c +++ b/extensions/m_mkpasswd.c @@ -30,7 +30,7 @@ static char saltChars[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmno /* 0 .. 63, ascii - 64 */ struct Message mkpasswd_msgtab = { - "MKPASSWD", 0, 0, 0, MFLG_SLOW, + "MKPASSWD", 0, 0, 0, 0, {mg_unreg, {m_mkpasswd, 2}, mg_ignore, mg_ignore, mg_ignore, {mo_mkpasswd, 2}} }; diff --git a/extensions/m_ojoin.c b/extensions/m_ojoin.c index 430faa31a..f65fadb1c 100644 --- a/extensions/m_ojoin.c +++ b/extensions/m_ojoin.c @@ -41,7 +41,7 @@ static int mo_ojoin(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Cli struct Message ojoin_msgtab = { - "OJOIN", 0, 0, 0, MFLG_SLOW, + "OJOIN", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_ojoin, 2}} }; diff --git a/extensions/m_okick.c b/extensions/m_okick.c index 63f1010d2..fd4eba517 100644 --- a/extensions/m_okick.c +++ b/extensions/m_okick.c @@ -44,7 +44,7 @@ static int mo_okick(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Cli struct Message okick_msgtab = { - "OKICK", 0, 0, 0, MFLG_SLOW, + "OKICK", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_okick, 4}} }; diff --git a/extensions/m_omode.c b/extensions/m_omode.c index af39ae887..3fd9ce528 100644 --- a/extensions/m_omode.c +++ b/extensions/m_omode.c @@ -47,7 +47,7 @@ static int mo_omode(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message omode_msgtab = { - "OMODE", 0, 0, 0, MFLG_SLOW, + "OMODE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_omode, 3}} }; diff --git a/extensions/m_opme.c b/extensions/m_opme.c index 817907695..1b0d3a650 100644 --- a/extensions/m_opme.c +++ b/extensions/m_opme.c @@ -39,7 +39,7 @@ static int mo_opme(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message opme_msgtab = { - "OPME", 0, 0, 0, MFLG_SLOW, + "OPME", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_opme, 2}} }; diff --git a/extensions/m_remove.c b/extensions/m_remove.c index 025460cbc..25bbd4700 100644 --- a/extensions/m_remove.c +++ b/extensions/m_remove.c @@ -48,7 +48,7 @@ static int m_remove(struct MsgBuf *, struct Client *, struct Client *, int, cons static void remove_quote_part(hook_data_privmsg_channel *); struct Message remove_msgtab = { - "REMOVE", 0, 0, 0, MFLG_SLOW, + "REMOVE", 0, 0, 0, 0, {mg_unreg, {m_remove, 3}, {m_remove, 3}, {m_remove, 3}, mg_ignore, {m_remove, 3}} }; diff --git a/extensions/m_roleplay.c b/extensions/m_roleplay.c index b4894901b..3b2f47aba 100644 --- a/extensions/m_roleplay.c +++ b/extensions/m_roleplay.c @@ -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} }; diff --git a/extensions/m_sendbans.c b/extensions/m_sendbans.c index a6d352169..932044478 100644 --- a/extensions/m_sendbans.c +++ b/extensions/m_sendbans.c @@ -48,7 +48,7 @@ static int mo_sendbans(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message sendbans_msgtab = { - "SENDBANS", 0, 0, 0, MFLG_SLOW, + "SENDBANS", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_sendbans, 2}} }; diff --git a/extensions/m_webirc.c b/extensions/m_webirc.c index 881c7066a..a11c4d15f 100644 --- a/extensions/m_webirc.c +++ b/extensions/m_webirc.c @@ -58,7 +58,7 @@ static int mr_webirc(struct MsgBuf *msgbuf_p, struct Client *, struct Client *, int, const char **); struct Message webirc_msgtab = { - "WEBIRC", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "WEBIRC", 0, 0, 0, 0, {{mr_webirc, 5}, mg_reg, mg_ignore, mg_ignore, mg_ignore, mg_reg} }; diff --git a/include/msg.h b/include/msg.h index b98266a35..24c25409f 100644 --- a/include/msg.h +++ b/include/msg.h @@ -66,19 +66,14 @@ struct Message unsigned int count; /* number of times command used */ unsigned int rcount; /* number of times command used by server */ unsigned long bytes; /* bytes received for this message */ - unsigned int flags; /* bit 0 set means that this command is allowed - * to be used only on the average of once per 2 - * seconds -SRB - */ + unsigned int flags; + /* handlers: * UNREGISTERED, CLIENT, RCLIENT, SERVER, OPER, LAST */ struct MessageEntry handlers[LAST_HANDLER_TYPE]; }; -#define MFLG_SLOW 0x01 /* executed roughly once per 2s */ -#define MFLG_UNREG 0x02 /* available to unregistered clients */ - /* generic handlers */ extern int m_ignore(struct MsgBuf *, struct Client *, struct Client *, int, const char **); extern int m_not_oper(struct MsgBuf *, struct Client *, struct Client *, int, const char **); diff --git a/ircd/modules.c b/ircd/modules.c index 700d379ea..5887a0145 100644 --- a/ircd/modules.c +++ b/ircd/modules.c @@ -84,27 +84,27 @@ static int do_modlist(struct Client *, const char *); static int do_modrestart(struct Client *); struct Message modload_msgtab = { - "MODLOAD", 0, 0, 0, MFLG_SLOW, + "MODLOAD", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_modload, 2}, {mo_modload, 2}} }; struct Message modunload_msgtab = { - "MODUNLOAD", 0, 0, 0, MFLG_SLOW, + "MODUNLOAD", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_modunload, 2}, {mo_modunload, 2}} }; struct Message modreload_msgtab = { - "MODRELOAD", 0, 0, 0, MFLG_SLOW, + "MODRELOAD", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_modreload, 2}, {mo_modreload, 2}} }; struct Message modlist_msgtab = { - "MODLIST", 0, 0, 0, MFLG_SLOW, + "MODLIST", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_modlist, 0}, {mo_modlist, 0}} }; struct Message modrestart_msgtab = { - "MODRESTART", 0, 0, 0, MFLG_SLOW, + "MODRESTART", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_modrestart, 0}, {mo_modrestart, 0}} }; diff --git a/ircd/parse.c b/ircd/parse.c index 484ae842d..6ec8ba420 100644 --- a/ircd/parse.c +++ b/ircd/parse.c @@ -221,19 +221,6 @@ handle_command(struct Message *mptr, struct MsgBuf *msgbuf_p, struct Client *cli mptr->count++; - /* New patch to avoid server flooding from unregistered connects - - Pie-Man 07/27/2000 */ - - if(!IsRegistered(client_p)) - { - /* if its from a possible server connection - * ignore it.. more than likely its a header thats sneaked through - */ - - if(IsAnyServer(client_p) && !(mptr->flags & MFLG_UNREG)) - return (1); - } - ehandler = mptr->handlers[from->handler]; handler = ehandler.handler; diff --git a/modules/core/m_ban.c b/modules/core/m_ban.c index 5056ab427..b9a9ec854 100644 --- a/modules/core/m_ban.c +++ b/modules/core/m_ban.c @@ -50,7 +50,7 @@ static int m_ban(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client static int ms_ban(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message ban_msgtab = { - "BAN", 0, 0, 0, MFLG_SLOW, + "BAN", 0, 0, 0, 0, {mg_unreg, {m_ban, 0}, {ms_ban, 9}, {ms_ban, 9}, mg_ignore, {m_ban, 0}} }; diff --git a/modules/core/m_die.c b/modules/core/m_die.c index 997eaa6db..b76ee8f30 100644 --- a/modules/core/m_die.c +++ b/modules/core/m_die.c @@ -43,7 +43,7 @@ static int me_die(struct MsgBuf *, struct Client *, struct Client *, int, const static int do_die(struct Client *, const char *); static struct Message die_msgtab = { - "DIE", 0, 0, 0, MFLG_SLOW, + "DIE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_die, 1}, {mo_die, 0}} }; diff --git a/modules/core/m_error.c b/modules/core/m_error.c index d943f3f81..23e6f0828 100644 --- a/modules/core/m_error.c +++ b/modules/core/m_error.c @@ -39,7 +39,7 @@ static int m_error(struct MsgBuf *, struct Client *, struct Client *, int, const static int ms_error(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message error_msgtab = { - "ERROR", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "ERROR", 0, 0, 0, 0, {{m_error, 0}, mg_ignore, mg_ignore, {ms_error, 0}, mg_ignore, mg_ignore} }; diff --git a/modules/core/m_join.c b/modules/core/m_join.c index 7ceaba75d..20273f045 100644 --- a/modules/core/m_join.c +++ b/modules/core/m_join.c @@ -52,12 +52,12 @@ static int h_can_create_channel; static int h_channel_join; struct Message join_msgtab = { - "JOIN", 0, 0, 0, MFLG_SLOW, + "JOIN", 0, 0, 0, 0, {mg_unreg, {m_join, 2}, {ms_join, 2}, mg_ignore, mg_ignore, {m_join, 2}} }; struct Message sjoin_msgtab = { - "SJOIN", 0, 0, 0, MFLG_SLOW, + "SJOIN", 0, 0, 0, 0, {mg_unreg, mg_ignore, mg_ignore, {ms_sjoin, 4}, mg_ignore, mg_ignore} }; diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index b3bf8df15..bc4a580a1 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -43,7 +43,7 @@ static int m_kick(struct MsgBuf *, struct Client *, struct Client *, int, const #define mg_kick { m_kick, 3 } struct Message kick_msgtab = { - "KICK", 0, 0, 0, MFLG_SLOW, + "KICK", 0, 0, 0, 0, {mg_unreg, mg_kick, mg_kick, mg_kick, mg_ignore, mg_kick} }; diff --git a/modules/core/m_kill.c b/modules/core/m_kill.c index 272d1aa06..594645403 100644 --- a/modules/core/m_kill.c +++ b/modules/core/m_kill.c @@ -49,7 +49,7 @@ static void relay_kill(struct Client *, struct Client *, struct Client *, const char *, const char *); struct Message kill_msgtab = { - "KILL", 0, 0, 0, MFLG_SLOW, + "KILL", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_kill, 2}, {ms_kill, 2}, mg_ignore, {mo_kill, 2}} }; diff --git a/modules/core/m_message.c b/modules/core/m_message.c index 34fa5b69d..eb48fdb0d 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -68,11 +68,11 @@ moddeinit(void) } struct Message privmsg_msgtab = { - "PRIVMSG", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "PRIVMSG", 0, 0, 0, 0, {mg_unreg, {m_privmsg, 0}, {m_privmsg, 0}, mg_ignore, mg_ignore, {m_privmsg, 0}} }; struct Message notice_msgtab = { - "NOTICE", 0, 0, 0, MFLG_SLOW, + "NOTICE", 0, 0, 0, 0, {mg_unreg, {m_notice, 0}, {m_notice, 0}, {m_notice, 0}, mg_ignore, {m_notice, 0}} }; diff --git a/modules/core/m_mode.c b/modules/core/m_mode.c index 355e382a5..bdeb0de71 100644 --- a/modules/core/m_mode.c +++ b/modules/core/m_mode.c @@ -49,19 +49,19 @@ static int ms_mlock(struct MsgBuf *, struct Client *, struct Client *, int, cons static int ms_bmask(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message mode_msgtab = { - "MODE", 0, 0, 0, MFLG_SLOW, + "MODE", 0, 0, 0, 0, {mg_unreg, {m_mode, 2}, {m_mode, 3}, {ms_mode, 3}, mg_ignore, {m_mode, 2}} }; struct Message tmode_msgtab = { - "TMODE", 0, 0, 0, MFLG_SLOW, + "TMODE", 0, 0, 0, 0, {mg_ignore, mg_ignore, {ms_tmode, 4}, {ms_tmode, 4}, mg_ignore, mg_ignore} }; struct Message mlock_msgtab = { - "MLOCK", 0, 0, 0, MFLG_SLOW, + "MLOCK", 0, 0, 0, 0, {mg_ignore, mg_ignore, {ms_mlock, 3}, {ms_mlock, 3}, mg_ignore, mg_ignore} }; struct Message bmask_msgtab = { - "BMASK", 0, 0, 0, MFLG_SLOW, + "BMASK", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, {ms_bmask, 5}, mg_ignore, mg_ignore} }; diff --git a/modules/core/m_nick.c b/modules/core/m_nick.c index fab15e5b6..eaf9fb867 100644 --- a/modules/core/m_nick.c +++ b/modules/core/m_nick.c @@ -68,19 +68,19 @@ static void save_user(struct Client *, struct Client *, struct Client *); static void bad_nickname(struct Client *, const char *); struct Message nick_msgtab = { - "NICK", 0, 0, 0, MFLG_SLOW, + "NICK", 0, 0, 0, 0, {{mr_nick, 0}, {m_nick, 0}, {mc_nick, 3}, {ms_nick, 0}, mg_ignore, {m_nick, 0}} }; struct Message uid_msgtab = { - "UID", 0, 0, 0, MFLG_SLOW, + "UID", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, {ms_uid, 9}, mg_ignore, mg_ignore} }; struct Message euid_msgtab = { - "EUID", 0, 0, 0, MFLG_SLOW, + "EUID", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, {ms_euid, 12}, mg_ignore, mg_ignore} }; struct Message save_msgtab = { - "SAVE", 0, 0, 0, MFLG_SLOW, + "SAVE", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, {ms_save, 3}, mg_ignore, mg_ignore} }; diff --git a/modules/core/m_part.c b/modules/core/m_part.c index db2d96717..95e3e66f7 100644 --- a/modules/core/m_part.c +++ b/modules/core/m_part.c @@ -45,7 +45,7 @@ static int m_part(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message part_msgtab = { - "PART", 0, 0, 0, MFLG_SLOW, + "PART", 0, 0, 0, 0, {mg_unreg, {m_part, 2}, {m_part, 2}, mg_ignore, mg_ignore, {m_part, 2}} }; diff --git a/modules/core/m_quit.c b/modules/core/m_quit.c index 52489e161..03ee2759d 100644 --- a/modules/core/m_quit.c +++ b/modules/core/m_quit.c @@ -40,7 +40,7 @@ static int m_quit(struct MsgBuf *, struct Client *, struct Client *, int, const 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}} }; diff --git a/modules/core/m_server.c b/modules/core/m_server.c index 143b0c33e..ce91a4554 100644 --- a/modules/core/m_server.c +++ b/modules/core/m_server.c @@ -47,11 +47,11 @@ static int ms_server(struct MsgBuf *, struct Client *, struct Client *, int, con static int ms_sid(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message server_msgtab = { - "SERVER", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "SERVER", 0, 0, 0, 0, {{mr_server, 4}, mg_reg, mg_ignore, {ms_server, 4}, mg_ignore, mg_reg} }; struct Message sid_msgtab = { - "SID", 0, 0, 0, MFLG_SLOW, + "SID", 0, 0, 0, 0, {mg_ignore, mg_reg, mg_ignore, {ms_sid, 5}, mg_ignore, mg_reg} }; diff --git a/modules/core/m_squit.c b/modules/core/m_squit.c index 140b31a5c..5fd183647 100644 --- a/modules/core/m_squit.c +++ b/modules/core/m_squit.c @@ -44,7 +44,7 @@ static int ms_squit(struct MsgBuf *, struct Client *, struct Client *, int, cons static int mo_squit(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message squit_msgtab = { - "SQUIT", 0, 0, 0, MFLG_SLOW, + "SQUIT", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_squit, 0}, {ms_squit, 0}, mg_ignore, {mo_squit, 2}} }; diff --git a/modules/m_accept.c b/modules/m_accept.c index 17a24fe07..a69ba274c 100644 --- a/modules/m_accept.c +++ b/modules/m_accept.c @@ -43,7 +43,7 @@ static void add_accept(struct Client *, struct Client *); static void list_accepts(struct Client *); struct Message accept_msgtab = { - "ACCEPT", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "ACCEPT", 0, 0, 0, 0, {mg_unreg, {m_accept, 2}, mg_ignore, mg_ignore, mg_ignore, {m_accept, 2}} }; diff --git a/modules/m_admin.c b/modules/m_admin.c index 943fac0a7..c58d08a5b 100644 --- a/modules/m_admin.c +++ b/modules/m_admin.c @@ -44,7 +44,7 @@ static void do_admin(struct Client *source_p); static void admin_spy(struct Client *); struct Message admin_msgtab = { - "ADMIN", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "ADMIN", 0, 0, 0, 0, {{mr_admin, 0}, {m_admin, 0}, {ms_admin, 0}, mg_ignore, mg_ignore, {ms_admin, 0}} }; diff --git a/modules/m_away.c b/modules/m_away.c index 2713fa2a9..f99655fea 100644 --- a/modules/m_away.c +++ b/modules/m_away.c @@ -40,7 +40,7 @@ static int m_away(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message away_msgtab = { - "AWAY", 0, 0, 0, MFLG_SLOW, + "AWAY", 0, 0, 0, 0, {mg_unreg, {m_away, 0}, {m_away, 0}, mg_ignore, mg_ignore, {m_away, 0}} }; diff --git a/modules/m_cap.c b/modules/m_cap.c index 0860dfd8a..ed68ca97a 100644 --- a/modules/m_cap.c +++ b/modules/m_cap.c @@ -51,7 +51,7 @@ static int m_cap(struct MsgBuf *, struct Client *, struct Client *, int, const c static int modinit(void); struct Message cap_msgtab = { - "CAP", 0, 0, 0, MFLG_SLOW, + "CAP", 0, 0, 0, 0, {{m_cap, 2}, {m_cap, 2}, mg_ignore, mg_ignore, mg_ignore, {m_cap, 2}} }; diff --git a/modules/m_capab.c b/modules/m_capab.c index 0079753a8..88303ff20 100644 --- a/modules/m_capab.c +++ b/modules/m_capab.c @@ -37,11 +37,11 @@ static int mr_capab(struct MsgBuf *, struct Client *, struct Client *, int, cons static int me_gcap(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message capab_msgtab = { - "CAPAB", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "CAPAB", 0, 0, 0, 0, {{mr_capab, 2}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore} }; struct Message gcap_msgtab = { - "GCAP", 0, 0, 0, MFLG_SLOW, + "GCAP", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_gcap, 2}, mg_ignore} }; diff --git a/modules/m_certfp.c b/modules/m_certfp.c index f9b670317..4828934ba 100644 --- a/modules/m_certfp.c +++ b/modules/m_certfp.c @@ -41,7 +41,7 @@ static int me_certfp(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message certfp_msgtab = { - "CERTFP", 0, 0, 0, MFLG_SLOW, + "CERTFP", 0, 0, 0, 0, {mg_unreg, mg_ignore, mg_ignore, mg_ignore, {me_certfp, 2}, mg_ignore} }; diff --git a/modules/m_challenge.c b/modules/m_challenge.c index feee9084f..ec27fe0fa 100644 --- a/modules/m_challenge.c +++ b/modules/m_challenge.c @@ -76,7 +76,7 @@ static int m_challenge(struct MsgBuf *, struct Client *, struct Client *, int, c /* We have openssl support, so include /CHALLENGE */ struct Message challenge_msgtab = { - "CHALLENGE", 0, 0, 0, MFLG_SLOW, + "CHALLENGE", 0, 0, 0, 0, {mg_unreg, {m_challenge, 2}, mg_ignore, mg_ignore, mg_ignore, {m_challenge, 2}} }; diff --git a/modules/m_chghost.c b/modules/m_chghost.c index e63ec1dc4..72e196222 100644 --- a/modules/m_chghost.c +++ b/modules/m_chghost.c @@ -34,12 +34,12 @@ static int me_chghost(struct MsgBuf *, struct Client *, struct Client *, int, co static int mo_chghost(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message realhost_msgtab = { - "REALHOST", 0, 0, 0, MFLG_SLOW, + "REALHOST", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_realhost, 2}, mg_ignore} }; struct Message chghost_msgtab = { - "CHGHOST", 0, 0, 0, MFLG_SLOW, + "CHGHOST", 0, 0, 0, 0, {mg_ignore, mg_not_oper, {ms_chghost, 3}, {ms_chghost, 3}, {me_chghost, 3}, {mo_chghost, 3}} }; diff --git a/modules/m_close.c b/modules/m_close.c index 1d5ecb965..ba0facdbf 100644 --- a/modules/m_close.c +++ b/modules/m_close.c @@ -36,7 +36,7 @@ static int mo_close(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message close_msgtab = { - "CLOSE", 0, 0, 0, MFLG_SLOW, + "CLOSE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_close, 0}} }; diff --git a/modules/m_cmessage.c b/modules/m_cmessage.c index 7edb39294..6ca411daa 100644 --- a/modules/m_cmessage.c +++ b/modules/m_cmessage.c @@ -65,11 +65,11 @@ _moddeinit(void) } struct Message cprivmsg_msgtab = { - "CPRIVMSG", 0, 0, 0, MFLG_SLOW, + "CPRIVMSG", 0, 0, 0, 0, {mg_ignore, {m_cprivmsg, 4}, mg_ignore, mg_ignore, mg_ignore, {m_cprivmsg, 4}} }; struct Message cnotice_msgtab = { - "CNOTICE", 0, 0, 0, MFLG_SLOW, + "CNOTICE", 0, 0, 0, 0, {mg_ignore, {m_cnotice, 4}, mg_ignore, mg_ignore, mg_ignore, {m_cnotice, 4}} }; diff --git a/modules/m_connect.c b/modules/m_connect.c index 9de18495b..81cb53e99 100644 --- a/modules/m_connect.c +++ b/modules/m_connect.c @@ -44,7 +44,7 @@ static int mo_connect(struct MsgBuf *, struct Client *, struct Client *, int, co static int ms_connect(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message connect_msgtab = { - "CONNECT", 0, 0, 0, MFLG_SLOW, + "CONNECT", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_connect, 4}, {ms_connect, 4}, mg_ignore, {mo_connect, 2}} }; diff --git a/modules/m_dline.c b/modules/m_dline.c index a4dc3f634..59e0f88a3 100644 --- a/modules/m_dline.c +++ b/modules/m_dline.c @@ -51,12 +51,12 @@ static int mo_undline(struct MsgBuf *, struct Client *, struct Client *, int, co static int me_undline(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message dline_msgtab = { - "DLINE", 0, 0, 0, MFLG_SLOW, + "DLINE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_dline, 4}, {mo_dline, 2}} }; struct Message undline_msgtab = { - "UNDLINE", 0, 0, 0, MFLG_SLOW, + "UNDLINE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_undline, 2}, {mo_undline, 2}} }; diff --git a/modules/m_encap.c b/modules/m_encap.c index ac773cf1e..b6cdef7d3 100644 --- a/modules/m_encap.c +++ b/modules/m_encap.c @@ -47,7 +47,7 @@ static int ms_encap(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Cli int parc, const char *parv[]); struct Message encap_msgtab = { - "ENCAP", 0, 0, 0, MFLG_SLOW, + "ENCAP", 0, 0, 0, 0, {mg_ignore, mg_ignore, {ms_encap, 3}, {ms_encap, 3}, mg_ignore, mg_ignore} }; diff --git a/modules/m_etrace.c b/modules/m_etrace.c index 1d325c55f..3821cecda 100644 --- a/modules/m_etrace.c +++ b/modules/m_etrace.c @@ -58,15 +58,15 @@ static int m_chantrace(struct MsgBuf *, struct Client *, struct Client *, int, c static int mo_masktrace(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message etrace_msgtab = { - "ETRACE", 0, 0, 0, MFLG_SLOW, + "ETRACE", 0, 0, 0, 0, {mg_ignore, mg_not_oper, mg_ignore, mg_ignore, {me_etrace, 0}, {mo_etrace, 0}} }; struct Message chantrace_msgtab = { - "CHANTRACE", 0, 0, 0, MFLG_SLOW, + "CHANTRACE", 0, 0, 0, 0, {mg_ignore, {m_chantrace, 2}, mg_ignore, mg_ignore, mg_ignore, {m_chantrace, 2}} }; struct Message masktrace_msgtab = { - "MASKTRACE", 0, 0, 0, MFLG_SLOW, + "MASKTRACE", 0, 0, 0, 0, {mg_ignore, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_masktrace, 2}} }; diff --git a/modules/m_grant.c b/modules/m_grant.c index d65db2e17..95635234d 100644 --- a/modules/m_grant.c +++ b/modules/m_grant.c @@ -22,7 +22,7 @@ static int me_grant(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Cli static int do_grant(struct Client *source_p, struct Client *target_p, const char *new_privset); struct Message grant_msgtab = { - "GRANT", 0, 0, 0, MFLG_SLOW, + "GRANT", 0, 0, 0, 0, { mg_ignore, mg_not_oper, mg_ignore, mg_ignore, {me_grant, 3}, {mo_grant, 3}} }; diff --git a/modules/m_help.c b/modules/m_help.c index b27142c3b..64085748a 100644 --- a/modules/m_help.c +++ b/modules/m_help.c @@ -44,11 +44,11 @@ static int mo_uhelp(struct MsgBuf *, struct Client *, struct Client *, int, cons static void dohelp(struct Client *, int, const char *); struct Message help_msgtab = { - "HELP", 0, 0, 0, MFLG_SLOW, + "HELP", 0, 0, 0, 0, {mg_unreg, {m_help, 0}, mg_ignore, mg_ignore, mg_ignore, {mo_help, 0}} }; struct Message uhelp_msgtab = { - "UHELP", 0, 0, 0, MFLG_SLOW, + "UHELP", 0, 0, 0, 0, {mg_unreg, {m_help, 0}, mg_ignore, mg_ignore, mg_ignore, {mo_uhelp, 0}} }; diff --git a/modules/m_info.c b/modules/m_info.c index 124d733e9..ddf8807b6 100644 --- a/modules/m_info.c +++ b/modules/m_info.c @@ -50,7 +50,7 @@ static int m_info(struct MsgBuf *, struct Client *, struct Client *, int, const static int mo_info(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message info_msgtab = { - "INFO", 0, 0, 0, MFLG_SLOW, + "INFO", 0, 0, 0, 0, {mg_unreg, {m_info, 0}, {mo_info, 0}, mg_ignore, mg_ignore, {mo_info, 0}} }; diff --git a/modules/m_invite.c b/modules/m_invite.c index efd3ae96a..37b5b8d8c 100644 --- a/modules/m_invite.c +++ b/modules/m_invite.c @@ -44,7 +44,7 @@ static int m_invite(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message invite_msgtab = { - "INVITE", 0, 0, 0, MFLG_SLOW, + "INVITE", 0, 0, 0, 0, {mg_unreg, {m_invite, 3}, {m_invite, 3}, mg_ignore, mg_ignore, {m_invite, 3}} }; mapi_clist_av1 invite_clist[] = { &invite_msgtab, NULL }; diff --git a/modules/m_ison.c b/modules/m_ison.c index 545d7119d..c3c38d35c 100644 --- a/modules/m_ison.c +++ b/modules/m_ison.c @@ -42,7 +42,7 @@ static int m_ison(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message ison_msgtab = { - "ISON", 0, 0, 0, MFLG_SLOW, + "ISON", 0, 0, 0, 0, {mg_unreg, {m_ison, 2}, mg_ignore, mg_ignore, mg_ignore, {m_ison, 2}} }; diff --git a/modules/m_kline.c b/modules/m_kline.c index 5f8003630..d11b59a9e 100644 --- a/modules/m_kline.c +++ b/modules/m_kline.c @@ -54,12 +54,12 @@ static int ms_unkline(struct MsgBuf *, struct Client *, struct Client *, int, co static int me_unkline(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message kline_msgtab = { - "KLINE", 0, 0, 0, MFLG_SLOW, + "KLINE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_kline, 5}, {ms_kline, 5}, {me_kline, 5}, {mo_kline, 3}} }; struct Message unkline_msgtab = { - "UNKLINE", 0, 0, 0, MFLG_SLOW, + "UNKLINE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_unkline, 4}, {ms_unkline, 4}, {me_unkline, 3}, {mo_unkline, 2}} }; diff --git a/modules/m_knock.c b/modules/m_knock.c index 7b124fb3d..86d325158 100644 --- a/modules/m_knock.c +++ b/modules/m_knock.c @@ -41,7 +41,7 @@ static int m_knock(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message knock_msgtab = { - "KNOCK", 0, 0, 0, MFLG_SLOW, + "KNOCK", 0, 0, 0, 0, {mg_unreg, {m_knock, 2}, {m_knock, 2}, mg_ignore, mg_ignore, {m_knock, 2}} }; diff --git a/modules/m_links.c b/modules/m_links.c index d7451c471..03e79571b 100644 --- a/modules/m_links.c +++ b/modules/m_links.c @@ -44,7 +44,7 @@ static int mo_links(struct MsgBuf *, struct Client *, struct Client *, int, cons static char * clean_string(char *dest, const unsigned char *src, size_t len); struct Message links_msgtab = { - "LINKS", 0, 0, 0, MFLG_SLOW, + "LINKS", 0, 0, 0, 0, {mg_unreg, {m_links, 0}, {mo_links, 0}, mg_ignore, mg_ignore, {mo_links, 0}} }; diff --git a/modules/m_list.c b/modules/m_list.c index e28c6db43..caf8d33dd 100644 --- a/modules/m_list.c +++ b/modules/m_list.c @@ -72,7 +72,7 @@ static void safelist_iterate_clients(void *unused); static void safelist_channel_named(struct Client *source_p, const char *name, int operspy); struct Message list_msgtab = { - "LIST", 0, 0, 0, MFLG_SLOW, + "LIST", 0, 0, 0, 0, {mg_unreg, {m_list, 0}, mg_ignore, mg_ignore, mg_ignore, {mo_list, 0}} }; diff --git a/modules/m_locops.c b/modules/m_locops.c index 5b74e0e33..7df9e2ef6 100644 --- a/modules/m_locops.c +++ b/modules/m_locops.c @@ -44,7 +44,7 @@ static int ms_locops(struct MsgBuf *, struct Client *, struct Client *, int, con static int me_locops(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message locops_msgtab = { - "LOCOPS", 0, 0, 0, MFLG_SLOW, + "LOCOPS", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_locops, 3}, mg_ignore, {me_locops, 2}, {m_locops, 2}} }; diff --git a/modules/m_lusers.c b/modules/m_lusers.c index bbc3b4d23..f7d593670 100644 --- a/modules/m_lusers.c +++ b/modules/m_lusers.c @@ -40,7 +40,7 @@ static int m_lusers(struct MsgBuf *, struct Client *, struct Client *, int, cons static int ms_lusers(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message lusers_msgtab = { - "LUSERS", 0, 0, 0, MFLG_SLOW, + "LUSERS", 0, 0, 0, 0, {mg_unreg, {m_lusers, 0}, {ms_lusers, 0}, mg_ignore, mg_ignore, {ms_lusers, 0}} }; diff --git a/modules/m_map.c b/modules/m_map.c index 2b7ba7ba2..2f8c7ad2b 100644 --- a/modules/m_map.c +++ b/modules/m_map.c @@ -36,7 +36,7 @@ static int m_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client static int mo_map(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message map_msgtab = { - "MAP", 0, 0, 0, MFLG_SLOW, + "MAP", 0, 0, 0, 0, {mg_unreg, {m_map, 0}, mg_ignore, mg_ignore, mg_ignore, {mo_map, 0}} }; diff --git a/modules/m_monitor.c b/modules/m_monitor.c index 166d68c20..ae26035be 100644 --- a/modules/m_monitor.c +++ b/modules/m_monitor.c @@ -46,7 +46,7 @@ static void monitor_deinit(void); static int m_monitor(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message monitor_msgtab = { - "MONITOR", 0, 0, 0, MFLG_SLOW, + "MONITOR", 0, 0, 0, 0, {mg_unreg, {m_monitor, 2}, mg_ignore, mg_ignore, mg_ignore, {m_monitor, 2}} }; diff --git a/modules/m_motd.c b/modules/m_motd.c index fbafed108..ffe27f3fd 100644 --- a/modules/m_motd.c +++ b/modules/m_motd.c @@ -42,7 +42,7 @@ static int m_motd(struct MsgBuf *, struct Client *, struct Client *, int, const static int mo_motd(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message motd_msgtab = { - "MOTD", 0, 0, 0, MFLG_SLOW, + "MOTD", 0, 0, 0, 0, {mg_unreg, {m_motd, 0}, {mo_motd, 0}, mg_ignore, mg_ignore, {mo_motd, 0}} }; diff --git a/modules/m_names.c b/modules/m_names.c index 839d952dc..ad23284af 100644 --- a/modules/m_names.c +++ b/modules/m_names.c @@ -42,7 +42,7 @@ static int m_names(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message names_msgtab = { - "NAMES", 0, 0, 0, MFLG_SLOW, + "NAMES", 0, 0, 0, 0, {mg_unreg, {m_names, 0}, mg_ignore, mg_ignore, mg_ignore, {m_names, 0}} }; diff --git a/modules/m_oper.c b/modules/m_oper.c index c6ee2dca9..cf256b6e2 100644 --- a/modules/m_oper.c +++ b/modules/m_oper.c @@ -44,7 +44,7 @@ static int m_oper(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message oper_msgtab = { - "OPER", 0, 0, 0, MFLG_SLOW, + "OPER", 0, 0, 0, 0, {mg_unreg, {m_oper, 3}, mg_ignore, mg_ignore, mg_ignore, {m_oper, 3}} }; diff --git a/modules/m_operspy.c b/modules/m_operspy.c index 2b1c5cfa4..c5147572e 100644 --- a/modules/m_operspy.c +++ b/modules/m_operspy.c @@ -48,7 +48,7 @@ static int ms_operspy(struct MsgBuf *msgbuf_p, struct Client *client_p, struct C 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} }; diff --git a/modules/m_pass.c b/modules/m_pass.c index 7883df67e..440433010 100644 --- a/modules/m_pass.c +++ b/modules/m_pass.c @@ -40,7 +40,7 @@ static int mr_pass(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message pass_msgtab = { - "PASS", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "PASS", 0, 0, 0, 0, {{mr_pass, 2}, mg_reg, mg_ignore, mg_ignore, mg_ignore, mg_reg} }; diff --git a/modules/m_ping.c b/modules/m_ping.c index fa94fe472..dd266ca96 100644 --- a/modules/m_ping.c +++ b/modules/m_ping.c @@ -41,7 +41,7 @@ static int m_ping(struct MsgBuf *, struct Client *, struct Client *, int, const static int ms_ping(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message ping_msgtab = { - "PING", 0, 0, 0, MFLG_SLOW, + "PING", 0, 0, 0, 0, {mg_unreg, {m_ping, 2}, {ms_ping, 2}, {ms_ping, 2}, mg_ignore, {m_ping, 2}} }; diff --git a/modules/m_pong.c b/modules/m_pong.c index a7c1158d8..de8b494ca 100644 --- a/modules/m_pong.c +++ b/modules/m_pong.c @@ -44,7 +44,7 @@ static int mr_pong(struct MsgBuf *, struct Client *, struct Client *, int, const static int ms_pong(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message pong_msgtab = { - "PONG", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "PONG", 0, 0, 0, 0, {{mr_pong, 0}, mg_ignore, mg_ignore, {ms_pong, 2}, mg_ignore, mg_ignore} }; diff --git a/modules/m_post.c b/modules/m_post.c index e6004bf09..31b1e39ae 100644 --- a/modules/m_post.c +++ b/modules/m_post.c @@ -38,15 +38,15 @@ static int mr_dumb_proxy(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message post_msgtab = { - "POST", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "POST", 0, 0, 0, 0, {{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore} }; struct Message get_msgtab = { - "GET", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "GET", 0, 0, 0, 0, {{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore} }; struct Message put_msgtab = { - "PUT", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "PUT", 0, 0, 0, 0, {{mr_dumb_proxy, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore} }; diff --git a/modules/m_privs.c b/modules/m_privs.c index 8d29ea85d..9ac1af1a4 100644 --- a/modules/m_privs.c +++ b/modules/m_privs.c @@ -45,7 +45,7 @@ static int me_privs(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Cli 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}} }; diff --git a/modules/m_rehash.c b/modules/m_rehash.c index ebfb548eb..3caef467e 100644 --- a/modules/m_rehash.c +++ b/modules/m_rehash.c @@ -50,7 +50,7 @@ static int mo_rehash(struct MsgBuf *, struct Client *, struct Client *, int, con static int me_rehash(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message rehash_msgtab = { - "REHASH", 0, 0, 0, MFLG_SLOW, + "REHASH", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_rehash, 0}, {mo_rehash, 0}} }; diff --git a/modules/m_restart.c b/modules/m_restart.c index 7725d90f9..7f3721e77 100644 --- a/modules/m_restart.c +++ b/modules/m_restart.c @@ -45,7 +45,7 @@ static int me_restart(struct MsgBuf *, struct Client *, struct Client *, int, co static int do_restart(struct Client *source_p, const char *servername); struct Message restart_msgtab = { - "RESTART", 0, 0, 0, MFLG_SLOW, + "RESTART", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_restart, 1}, {mo_restart, 0}} }; diff --git a/modules/m_resv.c b/modules/m_resv.c index 335442d57..519c35cd1 100644 --- a/modules/m_resv.c +++ b/modules/m_resv.c @@ -48,12 +48,12 @@ static int ms_unresv(struct MsgBuf *, struct Client *, struct Client *, int, con static int me_unresv(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message resv_msgtab = { - "RESV", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "RESV", 0, 0, 0, 0, {mg_ignore, mg_not_oper, {ms_resv, 4}, {ms_resv, 4}, {me_resv, 5}, {mo_resv, 3}} }; struct Message unresv_msgtab = { - "UNRESV", 0, 0, 0, MFLG_SLOW | MFLG_UNREG, + "UNRESV", 0, 0, 0, 0, {mg_ignore, mg_not_oper, {ms_unresv, 3}, {ms_unresv, 3}, {me_unresv, 2}, {mo_unresv, 2}} }; diff --git a/modules/m_sasl.c b/modules/m_sasl.c index 480c11aa7..84a9a850a 100644 --- a/modules/m_sasl.c +++ b/modules/m_sasl.c @@ -53,11 +53,11 @@ static void advertise_sasl(struct Client *); static void advertise_sasl_exit(hook_data_client_exit *); struct Message authenticate_msgtab = { - "AUTHENTICATE", 0, 0, 0, MFLG_SLOW, + "AUTHENTICATE", 0, 0, 0, 0, {{m_authenticate, 2}, {m_authenticate, 2}, mg_ignore, mg_ignore, mg_ignore, {m_authenticate, 2}} }; struct Message sasl_msgtab = { - "SASL", 0, 0, 0, MFLG_SLOW, + "SASL", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_sasl, 5}, mg_ignore} }; diff --git a/modules/m_scan.c b/modules/m_scan.c index 7e25adc39..25cbd538a 100644 --- a/modules/m_scan.c +++ b/modules/m_scan.c @@ -56,7 +56,7 @@ static int scan_umodes(struct MsgBuf *, struct Client *, struct Client *, int, c /*static int scan_cmodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **);*/ struct Message scan_msgtab = { - "SCAN", 0, 0, 0, MFLG_SLOW, + "SCAN", 0, 0, 0, 0, {mg_ignore, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_scan, 2}} }; diff --git a/modules/m_services.c b/modules/m_services.c index 3091f38d3..a27201460 100644 --- a/modules/m_services.c +++ b/modules/m_services.c @@ -67,19 +67,19 @@ static void h_svc_conf_read_start(void *); static void h_svc_conf_read_end(void *); struct Message su_msgtab = { - "SU", 0, 0, 0, MFLG_SLOW, + "SU", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_su, 2}, mg_ignore} }; struct Message login_msgtab = { - "LOGIN", 0, 0, 0, MFLG_SLOW, + "LOGIN", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_login, 2}, mg_ignore} }; struct Message rsfnc_msgtab = { - "RSFNC", 0, 0, 0, MFLG_SLOW, + "RSFNC", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_rsfnc, 4}, mg_ignore} }; struct Message nickdelay_msgtab = { - "NICKDELAY", 0, 0, 0, MFLG_SLOW, + "NICKDELAY", 0, 0, 0, 0, {mg_unreg, mg_ignore, mg_ignore, mg_ignore, {me_nickdelay, 3}, mg_ignore} }; diff --git a/modules/m_set.c b/modules/m_set.c index 0935c71c8..8e3b8820d 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -44,7 +44,7 @@ static int mo_set(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message set_msgtab = { - "SET", 0, 0, 0, MFLG_SLOW, + "SET", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_set, 0}} }; diff --git a/modules/m_signon.c b/modules/m_signon.c index 8a1cef3e3..4b4d83073 100644 --- a/modules/m_signon.c +++ b/modules/m_signon.c @@ -57,11 +57,11 @@ static int ms_signon(struct MsgBuf *, struct Client *, struct Client *, int, con static void send_signon(struct Client *, struct Client *, const char *, const char *, const char *, unsigned int, const char *); struct Message svslogin_msgtab = { - "SVSLOGIN", 0, 0, 0, MFLG_SLOW, + "SVSLOGIN", 0, 0, 0, 0, {mg_ignore, mg_ignore, mg_ignore, mg_ignore, {me_svslogin, 6}, mg_ignore} }; struct Message signon_msgtab = { - "SIGNON", 0, 0, 0, MFLG_SLOW, + "SIGNON", 0, 0, 0, 0, {mg_ignore, mg_ignore, {ms_signon, 6}, mg_ignore, mg_ignore, mg_ignore} }; diff --git a/modules/m_snote.c b/modules/m_snote.c index 06a071dcf..b8f7d7396 100644 --- a/modules/m_snote.c +++ b/modules/m_snote.c @@ -53,7 +53,7 @@ static int me_snote(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message snote_msgtab = { - "SNOTE", 0, 0, 0, MFLG_SLOW, + "SNOTE", 0, 0, 0, 0, {mg_ignore, mg_not_oper, mg_ignore, mg_ignore, {me_snote, 3}, mg_ignore} }; diff --git a/modules/m_starttls.c b/modules/m_starttls.c index 9d7b351b8..ed62db5ca 100644 --- a/modules/m_starttls.c +++ b/modules/m_starttls.c @@ -35,7 +35,7 @@ static int mr_starttls(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message starttls_msgtab = { - "STARTTLS", 0, 0, 0, MFLG_SLOW, + "STARTTLS", 0, 0, 0, 0, {{mr_starttls, 0}, mg_ignore, mg_ignore, mg_ignore, mg_ignore, mg_ignore} }; diff --git a/modules/m_stats.c b/modules/m_stats.c index 63f9dc1f2..1bdeb244b 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -54,7 +54,7 @@ static int m_stats (struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message stats_msgtab = { - "STATS", 0, 0, 0, MFLG_SLOW, + "STATS", 0, 0, 0, 0, {mg_unreg, {m_stats, 2}, {m_stats, 3}, mg_ignore, mg_ignore, {m_stats, 2}} }; diff --git a/modules/m_svinfo.c b/modules/m_svinfo.c index 2a04189e0..abd4b9bb4 100644 --- a/modules/m_svinfo.c +++ b/modules/m_svinfo.c @@ -40,7 +40,7 @@ static int ms_svinfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message svinfo_msgtab = { - "SVINFO", 0, 0, 0, MFLG_SLOW, + "SVINFO", 0, 0, 0, 0, {mg_unreg, mg_ignore, mg_ignore, {ms_svinfo, 5}, mg_ignore, mg_ignore} }; diff --git a/modules/m_tb.c b/modules/m_tb.c index 243c24f98..18a5e8bc2 100644 --- a/modules/m_tb.c +++ b/modules/m_tb.c @@ -48,12 +48,12 @@ static int ms_tb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client static int ms_etb(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]); struct Message tb_msgtab = { - "TB", 0, 0, 0, MFLG_SLOW, + "TB", 0, 0, 0, 0, {mg_unreg, mg_ignore, mg_ignore, {ms_tb, 4}, mg_ignore, mg_ignore} }; struct Message etb_msgtab = { - "ETB", 0, 0, 0, MFLG_SLOW, + "ETB", 0, 0, 0, 0, {mg_unreg, mg_ignore, {ms_etb, 5}, {ms_etb, 5}, mg_ignore, mg_ignore} }; diff --git a/modules/m_testline.c b/modules/m_testline.c index 70e684265..891d44867 100644 --- a/modules/m_testline.c +++ b/modules/m_testline.c @@ -45,11 +45,11 @@ static int mo_testline(struct MsgBuf *, struct Client *, struct Client *, int, c static int mo_testgecos(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message testline_msgtab = { - "TESTLINE", 0, 0, 0, MFLG_SLOW, + "TESTLINE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_testline, 2}} }; struct Message testgecos_msgtab = { - "TESTGECOS", 0, 0, 0, MFLG_SLOW, + "TESTGECOS", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_testgecos, 2}} }; diff --git a/modules/m_testmask.c b/modules/m_testmask.c index 271e0649a..52804f35a 100644 --- a/modules/m_testmask.c +++ b/modules/m_testmask.c @@ -52,7 +52,7 @@ static int mo_testmask(struct MsgBuf *msgbuf_p, struct Client *client_p, struct int parc, const char *parv[]); struct Message testmask_msgtab = { - "TESTMASK", 0, 0, 0, MFLG_SLOW, + "TESTMASK", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_testmask, 2}} }; diff --git a/modules/m_tginfo.c b/modules/m_tginfo.c index 30cf267eb..0f3ab77b9 100644 --- a/modules/m_tginfo.c +++ b/modules/m_tginfo.c @@ -42,7 +42,7 @@ static int me_tginfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message tginfo_msgtab = { - "TGINFO", 0, 0, 0, MFLG_SLOW, + "TGINFO", 0, 0, 0, 0, {mg_unreg, mg_ignore, mg_ignore, mg_ignore, {me_tginfo, 2}, mg_ignore} }; diff --git a/modules/m_time.c b/modules/m_time.c index 605561c66..40729f4bb 100644 --- a/modules/m_time.c +++ b/modules/m_time.c @@ -40,7 +40,7 @@ static int m_time(struct MsgBuf *, struct Client *, struct Client *, int, const static char *date(void); struct Message time_msgtab = { - "TIME", 0, 0, 0, MFLG_SLOW, + "TIME", 0, 0, 0, 0, {mg_unreg, {m_time, 0}, {m_time, 2}, mg_ignore, mg_ignore, {m_time, 0}} }; diff --git a/modules/m_topic.c b/modules/m_topic.c index 83dbe6938..6ab83765c 100644 --- a/modules/m_topic.c +++ b/modules/m_topic.c @@ -47,7 +47,7 @@ static int m_topic(struct MsgBuf *, struct Client *, struct Client *, int, const static int ms_topic(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message topic_msgtab = { - "TOPIC", 0, 0, 0, MFLG_SLOW, + "TOPIC", 0, 0, 0, 0, {mg_unreg, {m_topic, 2}, {m_topic, 2}, {ms_topic, 5}, mg_ignore, {m_topic, 2}} }; diff --git a/modules/m_trace.c b/modules/m_trace.c index ce5eb18bf..d8a66fba5 100644 --- a/modules/m_trace.c +++ b/modules/m_trace.c @@ -47,7 +47,7 @@ static int m_trace(struct MsgBuf *, struct Client *, struct Client *, int, const static void trace_spy(struct Client *, struct Client *); struct Message trace_msgtab = { - "TRACE", 0, 0, 0, MFLG_SLOW, + "TRACE", 0, 0, 0, 0, {mg_unreg, {m_trace, 0}, {m_trace, 0}, mg_ignore, mg_ignore, {m_trace, 0}} }; diff --git a/modules/m_unreject.c b/modules/m_unreject.c index 4f9cb3842..66146b714 100644 --- a/modules/m_unreject.c +++ b/modules/m_unreject.c @@ -35,7 +35,7 @@ static int mo_unreject(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message unreject_msgtab = { - "UNREJECT", 0, 0, 0, MFLG_SLOW, + "UNREJECT", 0, 0, 0, 0, {mg_unreg, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_unreject, 2}} }; diff --git a/modules/m_user.c b/modules/m_user.c index 7ef022aa2..060f0815a 100644 --- a/modules/m_user.c +++ b/modules/m_user.c @@ -41,7 +41,7 @@ static int mr_user(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message user_msgtab = { - "USER", 0, 0, 0, MFLG_SLOW, + "USER", 0, 0, 0, 0, {{mr_user, 5}, mg_reg, mg_ignore, mg_ignore, mg_ignore, mg_reg} }; diff --git a/modules/m_userhost.c b/modules/m_userhost.c index 65a5fad14..cbda1b330 100644 --- a/modules/m_userhost.c +++ b/modules/m_userhost.c @@ -41,7 +41,7 @@ static char buf[BUFSIZE]; static int m_userhost(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message userhost_msgtab = { - "USERHOST", 0, 0, 0, MFLG_SLOW, + "USERHOST", 0, 0, 0, 0, {mg_unreg, {m_userhost, 2}, mg_ignore, mg_ignore, mg_ignore, {m_userhost, 2}} }; diff --git a/modules/m_users.c b/modules/m_users.c index 82ab1c808..c50678fb0 100644 --- a/modules/m_users.c +++ b/modules/m_users.c @@ -38,7 +38,7 @@ static int m_users(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message users_msgtab = { - "USERS", 0, 0, 0, MFLG_SLOW, + "USERS", 0, 0, 0, 0, {mg_unreg, {m_users, 0}, {m_users, 0}, mg_ignore, mg_ignore, {m_users, 0}} }; diff --git a/modules/m_version.c b/modules/m_version.c index 2a12ffb9c..0462d6b68 100644 --- a/modules/m_version.c +++ b/modules/m_version.c @@ -42,7 +42,7 @@ static int m_version(struct MsgBuf *, struct Client *, struct Client *, int, con static int mo_version(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message version_msgtab = { - "VERSION", 0, 0, 0, MFLG_SLOW, + "VERSION", 0, 0, 0, 0, {mg_unreg, {m_version, 0}, {mo_version, 0}, {mo_version, 0}, mg_ignore, {mo_version, 0}} }; diff --git a/modules/m_wallops.c b/modules/m_wallops.c index 2479dbf6d..db0f9b397 100644 --- a/modules/m_wallops.c +++ b/modules/m_wallops.c @@ -43,11 +43,11 @@ static int ms_operwall(struct MsgBuf *, struct Client *, struct Client *, int, c static int ms_wallops(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message wallops_msgtab = { - "WALLOPS", 0, 0, 0, MFLG_SLOW, + "WALLOPS", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_wallops, 2}, {ms_wallops, 2}, mg_ignore, {ms_wallops, 2}} }; struct Message operwall_msgtab = { - "OPERWALL", 0, 0, 0, MFLG_SLOW, + "OPERWALL", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_operwall, 2}, mg_ignore, mg_ignore, {mo_operwall, 2}} }; diff --git a/modules/m_who.c b/modules/m_who.c index 577e23c6b..d24cf4618 100644 --- a/modules/m_who.c +++ b/modules/m_who.c @@ -66,7 +66,7 @@ struct who_format static int m_who(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message who_msgtab = { - "WHO", 0, 0, 0, MFLG_SLOW, + "WHO", 0, 0, 0, 0, {mg_unreg, {m_who, 2}, mg_ignore, mg_ignore, mg_ignore, {m_who, 2}} }; diff --git a/modules/m_whois.c b/modules/m_whois.c index 9780066fd..6499d1f6f 100644 --- a/modules/m_whois.c +++ b/modules/m_whois.c @@ -54,7 +54,7 @@ static int m_whois(struct MsgBuf *, struct Client *, struct Client *, int, const static int ms_whois(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message whois_msgtab = { - "WHOIS", 0, 0, 0, MFLG_SLOW, + "WHOIS", 0, 0, 0, 0, {mg_unreg, {m_whois, 2}, {ms_whois, 2}, mg_ignore, mg_ignore, {m_whois, 2}} }; diff --git a/modules/m_whowas.c b/modules/m_whowas.c index d2e15ca6a..82354994c 100644 --- a/modules/m_whowas.c +++ b/modules/m_whowas.c @@ -44,7 +44,7 @@ static int m_whowas(struct MsgBuf *, struct Client *, struct Client *, int, const char **); struct Message whowas_msgtab = { - "WHOWAS", 0, 0, 0, MFLG_SLOW, + "WHOWAS", 0, 0, 0, 0, {mg_unreg, {m_whowas, 2}, {m_whowas, 4}, mg_ignore, mg_ignore, {m_whowas, 2}} }; diff --git a/modules/m_xline.c b/modules/m_xline.c index b35b223be..b3650ed2e 100644 --- a/modules/m_xline.c +++ b/modules/m_xline.c @@ -64,12 +64,12 @@ static int me_unxline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct C const char *parv[]); struct Message xline_msgtab = { - "XLINE", 0, 0, 0, MFLG_SLOW, + "XLINE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_xline, 5}, {ms_xline, 5}, {me_xline, 5}, {mo_xline, 3}} }; struct Message unxline_msgtab = { - "UNXLINE", 0, 0, 0, MFLG_SLOW, + "UNXLINE", 0, 0, 0, 0, {mg_unreg, mg_not_oper, {ms_unxline, 3}, {ms_unxline, 3}, {me_unxline, 2}, {mo_unxline, 2}} };