From 30e5eb6be11e5b6f69cd18bc6eafd9abdb526134 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 1 Oct 2021 05:15:29 +0100 Subject: Mark all command classes as final. --- src/modules/m_spanningtree/commands.h | 102 ++++++++++++++++++++++------------ 1 file changed, 68 insertions(+), 34 deletions(-) (limited to 'src/modules/m_spanningtree') diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h index b41b700c1..2050898a6 100644 --- a/src/modules/m_spanningtree/commands.h +++ b/src/modules/m_spanningtree/commands.h @@ -43,7 +43,8 @@ using SpanningTree::CommandPing; using SpanningTree::CommandPong; using SpanningTree::CommandServer; -class CommandRConnect : public Command +class CommandRConnect final + : public Command { public: CommandRConnect(Module* Creator); @@ -51,7 +52,8 @@ class CommandRConnect : public Command RouteDescriptor GetRouting(User* user, const Params& parameters) override; }; -class CommandRSQuit : public Command +class CommandRSQuit final + : public Command { public: CommandRSQuit(Module* Creator); @@ -59,7 +61,8 @@ class CommandRSQuit : public Command RouteDescriptor GetRouting(User* user, const Params& parameters) override; }; -class CommandMap : public Command +class CommandMap final + : public Command { public: CommandMap(Module* Creator); @@ -67,7 +70,8 @@ class CommandMap : public Command RouteDescriptor GetRouting(User* user, const Params& parameters) override; }; -class CommandSVSJoin : public ServerCommand +class CommandSVSJoin final + : public ServerCommand { public: CommandSVSJoin(Module* Creator) : ServerCommand(Creator, "SVSJOIN", 2) { } @@ -75,7 +79,8 @@ class CommandSVSJoin : public ServerCommand RouteDescriptor GetRouting(User* user, const Params& parameters) override; }; -class CommandSVSPart : public ServerCommand +class CommandSVSPart final + : public ServerCommand { public: CommandSVSPart(Module* Creator) : ServerCommand(Creator, "SVSPART", 2) { } @@ -83,7 +88,8 @@ class CommandSVSPart : public ServerCommand RouteDescriptor GetRouting(User* user, const Params& parameters) override; }; -class CommandSVSNick : public ServerCommand +class CommandSVSNick final + : public ServerCommand { public: CommandSVSNick(Module* Creator) : ServerCommand(Creator, "SVSNICK", 3) { } @@ -91,7 +97,8 @@ class CommandSVSNick : public ServerCommand RouteDescriptor GetRouting(User* user, const Params& parameters) override; }; -class CommandMetadata : public ServerCommand +class CommandMetadata final + : public ServerCommand { public: CommandMetadata(Module* Creator) : ServerCommand(Creator, "METADATA", 2) { } @@ -107,7 +114,8 @@ class CommandMetadata : public ServerCommand }; }; -class CommandUID : public ServerOnlyServerCommand +class CommandUID final + : public ServerOnlyServerCommand { public: CommandUID(Module* Creator) : ServerOnlyServerCommand(Creator, "UID", 10) { } @@ -120,7 +128,8 @@ class CommandUID : public ServerOnlyServerCommand }; }; -class CommandOpertype : public UserOnlyServerCommand +class CommandOpertype final + : public UserOnlyServerCommand { public: CommandOpertype(Module* Creator) : UserOnlyServerCommand(Creator, "OPERTYPE", 1) { } @@ -135,7 +144,8 @@ class CommandOpertype : public UserOnlyServerCommand class TreeSocket; class FwdFJoinBuilder; -class CommandFJoin : public ServerCommand +class CommandFJoin final + : public ServerCommand { /** Remove all modes from a channel, including statusmodes (+qaovh etc), simplemodes, parameter modes. * This does not update the timestamp of the target channel, this must be done separately. @@ -182,14 +192,16 @@ class CommandFJoin : public ServerCommand }; }; -class CommandFMode : public ServerCommand +class CommandFMode final + : public ServerCommand { public: CommandFMode(Module* Creator) : ServerCommand(Creator, "FMODE", 3) { } CmdResult Handle(User* user, Params& params) override; }; -class CommandFTopic : public ServerCommand +class CommandFTopic final + : public ServerCommand { public: CommandFTopic(Module* Creator) : ServerCommand(Creator, "FTOPIC", 4, 5) { } @@ -203,42 +215,48 @@ class CommandFTopic : public ServerCommand }; }; -class CommandFHost : public UserOnlyServerCommand +class CommandFHost final + : public UserOnlyServerCommand { public: CommandFHost(Module* Creator) : UserOnlyServerCommand(Creator, "FHOST", 1) { } CmdResult HandleRemote(RemoteUser* user, Params& params); }; -class CommandFRHost : public UserOnlyServerCommand +class CommandFRHost final + : public UserOnlyServerCommand { public: CommandFRHost(Module* Creator) : UserOnlyServerCommand(Creator, "FRHOST", 1) { } CmdResult HandleRemote(RemoteUser* user, Params& params); }; -class CommandFIdent : public UserOnlyServerCommand +class CommandFIdent final + : public UserOnlyServerCommand { public: CommandFIdent(Module* Creator) : UserOnlyServerCommand(Creator, "FIDENT", 1) { } CmdResult HandleRemote(RemoteUser* user, Params& params); }; -class CommandFName : public UserOnlyServerCommand +class CommandFName final + : public UserOnlyServerCommand { public: CommandFName(Module* Creator) : UserOnlyServerCommand(Creator, "FNAME", 1) { } CmdResult HandleRemote(RemoteUser* user, Params& params); }; -class CommandIJoin : public UserOnlyServerCommand +class CommandIJoin final + : public UserOnlyServerCommand { public: CommandIJoin(Module* Creator) : UserOnlyServerCommand(Creator, "IJOIN", 2) { } CmdResult HandleRemote(RemoteUser* user, Params& params); }; -class CommandResync : public ServerOnlyServerCommand +class CommandResync final + : public ServerOnlyServerCommand { public: CommandResync(Module* Creator) : ServerOnlyServerCommand(Creator, "RESYNC", 1) { } @@ -246,7 +264,8 @@ class CommandResync : public ServerOnlyServerCommand RouteDescriptor GetRouting(User* user, const Params& parameters) override { return ROUTE_LOCALONLY; } }; -class SpanningTree::CommandAway : public UserOnlyServerCommand +class SpanningTree::CommandAway final + : public UserOnlyServerCommand { private: Away::EventProvider awayevprov; @@ -267,7 +286,8 @@ class SpanningTree::CommandAway : public UserOnlyServerCommand +class CommandIdle final + : public UserOnlyServerCommand { public: CommandIdle(Module* Creator) : UserOnlyServerCommand(Creator, "IDLE", 1) { } @@ -303,14 +326,16 @@ class CommandIdle : public UserOnlyServerCommand RouteDescriptor GetRouting(User* user, const Params& parameters) override { return ROUTE_UNICAST(parameters[0]); } }; -class SpanningTree::CommandNick : public UserOnlyServerCommand +class SpanningTree::CommandNick final + : public UserOnlyServerCommand { public: CommandNick(Module* Creator) : UserOnlyServerCommand(Creator, "NICK", 2) { } CmdResult HandleRemote(::RemoteUser* user, Params& parameters); }; -class SpanningTree::CommandPing : public ServerCommand +class SpanningTree::CommandPing final + : public ServerCommand { public: CommandPing(Module* Creator) : ServerCommand(Creator, "PING", 1) { } @@ -318,7 +343,8 @@ class SpanningTree::CommandPing : public ServerCommand RouteDescriptor GetRouting(User* user, const Params& parameters) override { return ROUTE_UNICAST(parameters[0]); } }; -class SpanningTree::CommandPong : public ServerOnlyServerCommand +class SpanningTree::CommandPong final + : public ServerOnlyServerCommand { public: CommandPong(Module* Creator) : ServerOnlyServerCommand(Creator, "PONG", 1) { } @@ -326,7 +352,8 @@ class SpanningTree::CommandPong : public ServerOnlyServerCommand +class SpanningTree::CommandServer final + : public ServerOnlyServerCommand { static void HandleExtra(TreeServer* newserver, Params& params); @@ -356,28 +384,32 @@ class SpanningTree::CommandServer : public ServerOnlyServerCommand +class CommandSQuit final + : public ServerOnlyServerCommand { public: CommandSQuit(Module* Creator) : ServerOnlyServerCommand(Creator, "SQUIT", 2) { } CmdResult HandleServer(TreeServer* server, Params& parameters); }; -class CommandSNONotice : public ServerCommand +class CommandSNONotice final + : public ServerCommand { public: CommandSNONotice(Module* Creator) : ServerCommand(Creator, "SNONOTICE", 2) { } CmdResult Handle(User* user, Params& parameters) override; }; -class CommandEndBurst : public ServerOnlyServerCommand +class CommandEndBurst final + : public ServerOnlyServerCommand { public: CommandEndBurst(Module* Creator) : ServerOnlyServerCommand(Creator, "ENDBURST") { } CmdResult HandleServer(TreeServer* server, Params& parameters); }; -class CommandSInfo : public ServerOnlyServerCommand +class CommandSInfo final + : public ServerOnlyServerCommand { public: CommandSInfo(Module* Creator) : ServerOnlyServerCommand(Creator, "SINFO", 2) { } @@ -390,7 +422,8 @@ class CommandSInfo : public ServerOnlyServerCommand }; }; -class CommandNum : public ServerOnlyServerCommand +class CommandNum final + : public ServerOnlyServerCommand { public: CommandNum(Module* Creator) : ServerOnlyServerCommand(Creator, "NUM", 3) { } @@ -404,7 +437,8 @@ class CommandNum : public ServerOnlyServerCommand }; }; -class CommandLMode : public ServerCommand +class CommandLMode final + : public ServerCommand { public: CommandLMode(Module* Creator) : ServerCommand(Creator, "LMODE", 3) { } -- cgit v1.3.1-10-gc9f91