aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/servercommand.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-10-04 17:07:51 +0100
committerGravatar Sadie Powell2021-10-04 17:39:05 +0100
commitdec5875aca7a2e0c281388db2f25d195ad9b2a3d (patch)
tree0f8f741801677daa23e7f399282b64ecde137ad0 /src/modules/m_spanningtree/servercommand.h
parentMark all message tag provider classes as final. (diff)
Apply the final keyword to all module classes where appropriate.
Diffstat (limited to 'src/modules/m_spanningtree/servercommand.h')
-rw-r--r--src/modules/m_spanningtree/servercommand.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree/servercommand.h b/src/modules/m_spanningtree/servercommand.h
index 7d350fc63..379dbbc19 100644
--- a/src/modules/m_spanningtree/servercommand.h
+++ b/src/modules/m_spanningtree/servercommand.h
@@ -23,7 +23,8 @@
#include "utils.h"
#include "treeserver.h"
-class ProtocolException : public ModuleException
+class ProtocolException final
+ : public ModuleException
{
public:
ProtocolException(const std::string& msg)
@@ -34,7 +35,8 @@ class ProtocolException : public ModuleException
/** Base class for server-to-server commands that may have a (remote) user source or server source.
*/
-class ServerCommand : public CommandBase
+class ServerCommand
+ : public CommandBase
{
public:
ServerCommand(Module* Creator, const std::string& Name, unsigned int MinPara = 0, unsigned int MaxPara = 0);
@@ -60,7 +62,8 @@ class ServerCommand : public CommandBase
* When a server sends a command of this type and the source is a server (sid), the link is aborted.
*/
template <class T>
-class UserOnlyServerCommand : public ServerCommand
+class UserOnlyServerCommand
+ : public ServerCommand
{
public:
UserOnlyServerCommand(Module* Creator, const std::string& Name, unsigned int MinPara = 0, unsigned int MaxPara = 0)
@@ -79,7 +82,8 @@ class UserOnlyServerCommand : public ServerCommand
* When a server sends a command of this type and the source is a user (uuid), the link is aborted.
*/
template <class T>
-class ServerOnlyServerCommand : public ServerCommand
+class ServerOnlyServerCommand
+ : public ServerCommand
{
public:
ServerOnlyServerCommand(Module* Creator, const std::string& Name, unsigned int MinPara = 0, unsigned int MaxPara = 0)
@@ -94,7 +98,7 @@ class ServerOnlyServerCommand : public ServerCommand
}
};
-class ServerCommandManager
+class ServerCommandManager final
{
typedef std::unordered_map<std::string, ServerCommand*> ServerCommandMap;
ServerCommandMap commands;