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 4d88f390..d08e9ff9 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 6238adef..2dad817c 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 a12041f1..beb2ada2 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 e30fb267..59fc5d98 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 dd423b16..53cf0f29 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 982f72c0..dd363d43 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 c5326e8d..1db67e8b 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 d2779815..36cbb76c 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 5ac5cada..d2471a29 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 147a4634..d1ffaf01 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 430faa31..f65fadb1 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 63f1010d..fd4eba51 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 af39ae88..3fd9ce52 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 81790769..1b0d3a65 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 025460cb..25bbd470 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 b4894901..3b2f47ab 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 a6d35216..93204447 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 881c7066..a11c4d15 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 b98266a3..24c25409 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 700d379e..5887a014 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 484ae842..6ec8ba42 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 5056ab42..b9a9ec85 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 997eaa6d..b76ee8f3 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 d943f3f8..23e6f082 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 7ceaba75..20273f04 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 b3bf8df1..bc4a580a 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 272d1aa0..59464540 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 34fa5b69..eb48fdb0 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 355e382a..bdeb0de7 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 fab15e5b..eaf9fb86 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 db2d9671..95e3e66f 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 52489e16..03ee2759 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 143b0c33..ce91a455 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 140b31a5..5fd18364 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 17a24fe0..a69ba274 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 943fac0a..c58d08a5 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 2713fa2a..f99655fe 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 0860dfd8..ed68ca97 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 0079753a..88303ff2 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 f9b67031..4828934b 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 feee9084..ec27fe0f 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 e63ec1dc..72e19622 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 1d5ecb96..ba0facdb 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 7edb3929..6ca411da 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 9de18495..81cb53e9 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 a4dc3f63..59e0f88a 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 ac773cf1..b6cdef7d 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 1d325c55..3821cecd 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 d65db2e1..95635234 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 b27142c3..64085748 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 124d733e..ddf8807b 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 efd3ae96..37b5b8d8 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 545d7119..c3c38d35 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 5f800363..d11b59a9 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 7b124fb3..86d32515 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 d7451c47..03e79571 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 e28c6db4..caf8d33d 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 5b74e0e3..7df9e2ef 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 bbc3b4d2..f7d59367 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 2b7ba7ba..2f8c7ad2 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 166d68c2..ae26035b 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 fbafed10..ffe27f3f 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 839d952d..ad23284a 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 c6ee2dca..cf256b6e 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 2b1c5cfa..c5147572 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 7883df67..44043301 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 fa94fe47..dd266ca9 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 a7c1158d..de8b494c 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 e6004bf0..31b1e39a 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 8d29ea85..9ac1af1a 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 ebfb548e..3caef467 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 7725d90f..7f3721e7 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 335442d5..519c35cd 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 480c11aa..84a9a850 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 7e25adc3..25cbd538 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 3091f38d..a2720146 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 0935c71c..8e3b8820 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 8a1cef3e..4b4d8307 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 06a071dc..b8f7d739 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 9d7b351b..ed62db5c 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 63f9dc1f..1bdeb244 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 2a04189e..abd4b9bb 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 243c24f9..18a5e8bc 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 70e68426..891d4486 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 271e0649..52804f35 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 30cf267e..0f3ab77b 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 605561c6..40729f4b 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 83dbe693..6ab83765 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 ce5eb18b..d8a66fba 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 4f9cb384..66146b71 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 7ef022aa..060f0815 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 65a5fad1..cbda1b33 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 82ab1c80..c50678fb 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 2a12ffb9..0462d6b6 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 2479dbf6..db0f9b39 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 577e23c6..d24cf461 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 9780066f..6499d1f6 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 d2e15ca6..82354994 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 b35b223b..b3650ed2 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}} };