aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-10-01 05:15:29 +0100
committerGravatar Sadie Powell2021-10-01 05:15:54 +0100
commit30e5eb6be11e5b6f69cd18bc6eafd9abdb526134 (patch)
tree9a33d9c6d9a84400e2c21276b6a2b307fd063b6f /src/modules
parentMark all module classes as final. (diff)
Mark all command classes as final.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_alltime.cpp3
-rw-r--r--src/modules/m_callerid.cpp3
-rw-r--r--src/modules/m_cap.cpp3
-rw-r--r--src/modules/m_cban.cpp3
-rw-r--r--src/modules/m_check.cpp3
-rw-r--r--src/modules/m_chghost.cpp3
-rw-r--r--src/modules/m_chgident.cpp3
-rw-r--r--src/modules/m_chgname.cpp3
-rw-r--r--src/modules/m_clearchan.cpp3
-rw-r--r--src/modules/m_cloaking.cpp3
-rw-r--r--src/modules/m_customtitle.cpp3
-rw-r--r--src/modules/m_cycle.cpp3
-rw-r--r--src/modules/m_dccallow.cpp3
-rw-r--r--src/modules/m_filter.cpp3
-rw-r--r--src/modules/m_gateway.cpp6
-rw-r--r--src/modules/m_globalload.cpp9
-rw-r--r--src/modules/m_globops.cpp3
-rw-r--r--src/modules/m_helpop.cpp3
-rw-r--r--src/modules/m_ircv3_ctctags.cpp3
-rw-r--r--src/modules/m_knock.cpp3
-rw-r--r--src/modules/m_monitor.cpp3
-rw-r--r--src/modules/m_namedmodes.cpp3
-rw-r--r--src/modules/m_nicklock.cpp6
-rw-r--r--src/modules/m_ojoin.cpp3
-rw-r--r--src/modules/m_opermotd.cpp3
-rw-r--r--src/modules/m_password_hash.cpp3
-rw-r--r--src/modules/m_rline.cpp3
-rw-r--r--src/modules/m_rmode.cpp3
-rw-r--r--src/modules/m_sajoin.cpp3
-rw-r--r--src/modules/m_sakick.cpp3
-rw-r--r--src/modules/m_samode.cpp3
-rw-r--r--src/modules/m_sanick.cpp3
-rw-r--r--src/modules/m_sapart.cpp3
-rw-r--r--src/modules/m_saquit.cpp3
-rw-r--r--src/modules/m_sasl.cpp6
-rw-r--r--src/modules/m_satopic.cpp3
-rw-r--r--src/modules/m_sethost.cpp3
-rw-r--r--src/modules/m_setident.cpp3
-rw-r--r--src/modules/m_setidle.cpp3
-rw-r--r--src/modules/m_setname.cpp3
-rw-r--r--src/modules/m_showfile.cpp3
-rw-r--r--src/modules/m_showwhois.cpp3
-rw-r--r--src/modules/m_shun.cpp3
-rw-r--r--src/modules/m_silence.cpp3
-rw-r--r--src/modules/m_spanningtree/commands.h102
-rw-r--r--src/modules/m_sslinfo.cpp3
-rw-r--r--src/modules/m_starttls.cpp3
-rw-r--r--src/modules/m_svshold.cpp3
-rw-r--r--src/modules/m_swhois.cpp3
-rw-r--r--src/modules/m_timedbans.cpp3
-rw-r--r--src/modules/m_tline.cpp3
-rw-r--r--src/modules/m_topiclock.cpp3
-rw-r--r--src/modules/m_uninvite.cpp3
-rw-r--r--src/modules/m_userip.cpp3
-rw-r--r--src/modules/m_vhost.cpp3
-rw-r--r--src/modules/m_watch.cpp3
56 files changed, 188 insertions, 94 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index 4bb413181..ee60d32b6 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -26,7 +26,8 @@
#include "inspircd.h"
-class CommandAlltime : public Command
+class CommandAlltime final
+ : public Command
{
public:
CommandAlltime(Module* Creator) : Command(Creator, "ALLTIME", 0)
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp
index 49c8539b5..efbef02f0 100644
--- a/src/modules/m_callerid.cpp
+++ b/src/modules/m_callerid.cpp
@@ -152,7 +152,8 @@ struct CallerIDExtInfo : public ExtensionItem
}
};
-class CommandAccept : public Command
+class CommandAccept final
+ : public Command
{
/** Pair: first is the target, second is true to add, false to remove
*/
diff --git a/src/modules/m_cap.cpp b/src/modules/m_cap.cpp
index 741806414..27f8a1a22 100644
--- a/src/modules/m_cap.cpp
+++ b/src/modules/m_cap.cpp
@@ -354,7 +354,8 @@ class CapMessage : public Cap::MessageBase
}
};
-class CommandCap : public SplitCommand
+class CommandCap final
+ : public SplitCommand
{
private:
Events::ModuleEventProvider evprov;
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index 9a8779e26..2760c8196 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -86,7 +86,8 @@ class CBanFactory : public XLineFactory
}
};
-class CommandCBan : public Command
+class CommandCBan final
+ : public Command
{
public:
CommandCBan(Module* Creator) : Command(Creator, "CBAN", 1, 3)
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp
index 6ba1e3138..8f7e88147 100644
--- a/src/modules/m_check.cpp
+++ b/src/modules/m_check.cpp
@@ -116,7 +116,8 @@ class CheckContext
};
};
-class CommandCheck : public Command
+class CommandCheck final
+ : public Command
{
UserModeReference snomaskmode;
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp
index 49f203d2b..e9874630c 100644
--- a/src/modules/m_chghost.cpp
+++ b/src/modules/m_chghost.cpp
@@ -25,7 +25,8 @@
#include "inspircd.h"
-class CommandChghost : public Command
+class CommandChghost final
+ : public Command
{
public:
std::bitset<UCHAR_MAX + 1> hostmap;
diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp
index 51d8fe543..9446fcfdf 100644
--- a/src/modules/m_chgident.cpp
+++ b/src/modules/m_chgident.cpp
@@ -28,7 +28,8 @@
#include "inspircd.h"
-class CommandChgident : public Command
+class CommandChgident final
+ : public Command
{
public:
CommandChgident(Module* Creator) : Command(Creator,"CHGIDENT", 2)
diff --git a/src/modules/m_chgname.cpp b/src/modules/m_chgname.cpp
index 3930565c5..053f6427d 100644
--- a/src/modules/m_chgname.cpp
+++ b/src/modules/m_chgname.cpp
@@ -26,7 +26,8 @@
#include "inspircd.h"
-class CommandChgname : public Command
+class CommandChgname final
+ : public Command
{
public:
CommandChgname(Module* Creator) : Command(Creator,"CHGNAME", 2, 2)
diff --git a/src/modules/m_clearchan.cpp b/src/modules/m_clearchan.cpp
index b02ec9f76..ee9f5aeaa 100644
--- a/src/modules/m_clearchan.cpp
+++ b/src/modules/m_clearchan.cpp
@@ -22,7 +22,8 @@
#include "inspircd.h"
#include "xline.h"
-class CommandClearChan : public Command
+class CommandClearChan final
+ : public Command
{
public:
Channel* activechan;
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 3731e2f89..41ab7a701 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -191,7 +191,8 @@ class CloakUser : public ModeHandler
}
};
-class CommandCloak : public Command
+class CommandCloak final
+ : public Command
{
public:
CommandCloak(Module* Creator) : Command(Creator, "CLOAK", 1)
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index 9f0d09c56..f93716c7f 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -59,7 +59,8 @@ struct CustomTitle
typedef std::multimap<std::string, CustomTitle> CustomVhostMap;
-class CommandTitle : public Command
+class CommandTitle final
+ : public Command
{
public:
StringExtItem ctitle;
diff --git a/src/modules/m_cycle.cpp b/src/modules/m_cycle.cpp
index 0c4e99892..4c0d2555a 100644
--- a/src/modules/m_cycle.cpp
+++ b/src/modules/m_cycle.cpp
@@ -28,7 +28,8 @@
#include "inspircd.h"
-class CommandCycle : public SplitCommand
+class CommandCycle final
+ : public SplitCommand
{
public:
CommandCycle(Module* Creator)
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index 18aa34c10..fe1c2f0de 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -179,7 +179,8 @@ class DCCAllowExt : public SimpleExtItem<dccallowlist>
}
};
-class CommandDccallow : public Command
+class CommandDccallow final
+ : public Command
{
public:
DCCAllowExt& ext;
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 16cf8de5c..0f1a2ffbd 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -167,7 +167,8 @@ class FilterResult
FilterResult() = default;
};
-class CommandFilter : public Command
+class CommandFilter final
+ : public Command
{
public:
CommandFilter(Module* f)
diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp
index 5e9adc92c..76e753683 100644
--- a/src/modules/m_gateway.cpp
+++ b/src/modules/m_gateway.cpp
@@ -119,7 +119,8 @@ class WebIRCHost
}
};
-class CommandHexIP : public SplitCommand
+class CommandHexIP final
+ : public SplitCommand
{
public:
CommandHexIP(Module* Creator)
@@ -220,7 +221,8 @@ class GatewayExtBan
}
};
-class CommandWebIRC : public SplitCommand
+class CommandWebIRC final
+ : public SplitCommand
{
public:
std::vector<WebIRCHost> hosts;
diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp
index 04b3ecd84..720e42d65 100644
--- a/src/modules/m_globalload.cpp
+++ b/src/modules/m_globalload.cpp
@@ -26,7 +26,8 @@
#include "inspircd.h"
-class CommandGLoadModule : public Command
+class CommandGLoadModule final
+ : public Command
{
public:
CommandGLoadModule(Module* Creator)
@@ -65,7 +66,8 @@ class CommandGLoadModule : public Command
}
};
-class CommandGUnloadModule : public Command
+class CommandGUnloadModule final
+ : public Command
{
public:
CommandGUnloadModule(Module* Creator)
@@ -116,7 +118,8 @@ class CommandGUnloadModule : public Command
}
};
-class CommandGReloadModule : public Command
+class CommandGReloadModule final
+ : public Command
{
public:
CommandGReloadModule(Module* Creator)
diff --git a/src/modules/m_globops.cpp b/src/modules/m_globops.cpp
index 68a90f610..56d06a8a8 100644
--- a/src/modules/m_globops.cpp
+++ b/src/modules/m_globops.cpp
@@ -28,7 +28,8 @@
#include "inspircd.h"
-class CommandGlobops : public Command
+class CommandGlobops final
+ : public Command
{
public:
CommandGlobops(Module* Creator) : Command(Creator,"GLOBOPS", 1,1)
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 82c60832a..9081214f2 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -55,7 +55,8 @@ struct HelpTopic
typedef std::map<std::string, HelpTopic, irc::insensitive_swo> HelpMap;
-class CommandHelpop : public Command
+class CommandHelpop final
+ : public Command
{
private:
const std::string startkey;
diff --git a/src/modules/m_ircv3_ctctags.cpp b/src/modules/m_ircv3_ctctags.cpp
index 358c2c7f3..583b5e00b 100644
--- a/src/modules/m_ircv3_ctctags.cpp
+++ b/src/modules/m_ircv3_ctctags.cpp
@@ -23,7 +23,8 @@
#include "modules/ctctags.h"
#include "modules/isupport.h"
-class CommandTagMsg : public Command
+class CommandTagMsg final
+ : public Command
{
private:
Cap::Capability& cap;
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp
index 80bb474db..c04f7ca20 100644
--- a/src/modules/m_knock.cpp
+++ b/src/modules/m_knock.cpp
@@ -54,7 +54,8 @@ enum KnockNotify : uint8_t
/** Handles the /KNOCK command
*/
-class CommandKnock : public Command
+class CommandKnock final
+ : public Command
{
SimpleChannelMode& noknockmode;
ChanModeReference inviteonlymode;
diff --git a/src/modules/m_monitor.cpp b/src/modules/m_monitor.cpp
index 1ac0b3c63..6dcb0e3dc 100644
--- a/src/modules/m_monitor.cpp
+++ b/src/modules/m_monitor.cpp
@@ -260,7 +260,8 @@ enum
ERR_MONLISTFULL = 734
};
-class CommandMonitor : public SplitCommand
+class CommandMonitor final
+ : public SplitCommand
{
typedef Numeric::Builder<> ReplyBuilder;
// Additional penalty for the /MONITOR L and /MONITOR S commands that request a list from the server
diff --git a/src/modules/m_namedmodes.cpp b/src/modules/m_namedmodes.cpp
index daa6aa468..a024644e1 100644
--- a/src/modules/m_namedmodes.cpp
+++ b/src/modules/m_namedmodes.cpp
@@ -55,7 +55,8 @@ static void DisplayList(LocalUser* user, Channel* channel)
user->WriteNumeric(RPL_ENDOFPROPLIST, channel->name, "End of mode list");
}
-class CommandProp : public SplitCommand
+class CommandProp final
+ : public SplitCommand
{
public:
CommandProp(Module* parent)
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp
index ab05d5c40..a761350d1 100644
--- a/src/modules/m_nicklock.cpp
+++ b/src/modules/m_nicklock.cpp
@@ -34,7 +34,8 @@ enum
RPL_NICKLOCKOFF = 945
};
-class CommandNicklock : public Command
+class CommandNicklock final
+ : public Command
{
public:
BoolExtItem& locked;
@@ -92,7 +93,8 @@ class CommandNicklock : public Command
}
};
-class CommandNickunlock : public Command
+class CommandNickunlock final
+ : public Command
{
public:
BoolExtItem& locked;
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index 9de5b5645..be734d98e 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -24,7 +24,8 @@
#define NETWORK_VALUE 9000000
-class CommandOjoin : public SplitCommand
+class CommandOjoin final
+ : public SplitCommand
{
public:
bool active;
diff --git a/src/modules/m_opermotd.cpp b/src/modules/m_opermotd.cpp
index 5a0065c7f..975e79a0b 100644
--- a/src/modules/m_opermotd.cpp
+++ b/src/modules/m_opermotd.cpp
@@ -37,7 +37,8 @@ enum
RPL_ENDOFOMOTD = 722
};
-class CommandOpermotd : public Command
+class CommandOpermotd final
+ : public Command
{
public:
file_cache opermotd;
diff --git a/src/modules/m_password_hash.cpp b/src/modules/m_password_hash.cpp
index 7388f00f3..73b2f9809 100644
--- a/src/modules/m_password_hash.cpp
+++ b/src/modules/m_password_hash.cpp
@@ -27,7 +27,8 @@
#include "inspircd.h"
#include "modules/hash.h"
-class CommandMkpasswd : public Command
+class CommandMkpasswd final
+ : public Command
{
public:
CommandMkpasswd(Module* Creator) : Command(Creator, "MKPASSWD", 2)
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp
index 2b412fe0e..de4f1c7c7 100644
--- a/src/modules/m_rline.cpp
+++ b/src/modules/m_rline.cpp
@@ -115,7 +115,8 @@ class RLineFactory : public XLineFactory
}
};
-class CommandRLine : public Command
+class CommandRLine final
+ : public Command
{
std::string rxengine;
RLineFactory& factory;
diff --git a/src/modules/m_rmode.cpp b/src/modules/m_rmode.cpp
index 35d2eca77..5690bdb35 100644
--- a/src/modules/m_rmode.cpp
+++ b/src/modules/m_rmode.cpp
@@ -23,7 +23,8 @@
#include "inspircd.h"
#include "listmode.h"
-class CommandRMode : public Command
+class CommandRMode final
+ : public Command
{
public:
CommandRMode(Module* Creator) : Command(Creator,"RMODE", 2, 3)
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp
index 0d55e1fdd..a3e424502 100644
--- a/src/modules/m_sajoin.cpp
+++ b/src/modules/m_sajoin.cpp
@@ -27,7 +27,8 @@
#include "inspircd.h"
-class CommandSajoin : public Command
+class CommandSajoin final
+ : public Command
{
public:
CommandSajoin(Module* Creator) : Command(Creator,"SAJOIN", 1)
diff --git a/src/modules/m_sakick.cpp b/src/modules/m_sakick.cpp
index 00d14aa09..fa3665c65 100644
--- a/src/modules/m_sakick.cpp
+++ b/src/modules/m_sakick.cpp
@@ -24,7 +24,8 @@
#include "inspircd.h"
-class CommandSakick : public Command
+class CommandSakick final
+ : public Command
{
public:
CommandSakick(Module* Creator) : Command(Creator,"SAKICK", 2, 3)
diff --git a/src/modules/m_samode.cpp b/src/modules/m_samode.cpp
index 8159e6bf7..e51d8136f 100644
--- a/src/modules/m_samode.cpp
+++ b/src/modules/m_samode.cpp
@@ -26,7 +26,8 @@
#include "inspircd.h"
-class CommandSamode : public Command
+class CommandSamode final
+ : public Command
{
bool logged;
diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp
index 432b0865a..ef130d2d2 100644
--- a/src/modules/m_sanick.cpp
+++ b/src/modules/m_sanick.cpp
@@ -25,7 +25,8 @@
#include "inspircd.h"
-class CommandSanick : public Command
+class CommandSanick final
+ : public Command
{
public:
CommandSanick(Module* Creator) : Command(Creator,"SANICK", 2)
diff --git a/src/modules/m_sapart.cpp b/src/modules/m_sapart.cpp
index 540ad2c1a..c1d41b27a 100644
--- a/src/modules/m_sapart.cpp
+++ b/src/modules/m_sapart.cpp
@@ -25,7 +25,8 @@
#include "inspircd.h"
-class CommandSapart : public Command
+class CommandSapart final
+ : public Command
{
public:
CommandSapart(Module* Creator) : Command(Creator,"SAPART", 2, 3)
diff --git a/src/modules/m_saquit.cpp b/src/modules/m_saquit.cpp
index fe5eb44c5..d21dd3a62 100644
--- a/src/modules/m_saquit.cpp
+++ b/src/modules/m_saquit.cpp
@@ -27,7 +27,8 @@
#include "inspircd.h"
-class CommandSaquit : public Command
+class CommandSaquit final
+ : public Command
{
public:
CommandSaquit(Module* Creator) : Command(Creator, "SAQUIT", 2, 2)
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp
index 793cb446b..9dcf4bb12 100644
--- a/src/modules/m_sasl.cpp
+++ b/src/modules/m_sasl.cpp
@@ -305,7 +305,8 @@ class SaslAuthenticator
}
};
-class CommandAuthenticate : public SplitCommand
+class CommandAuthenticate final
+ : public SplitCommand
{
private:
// The maximum length of an AUTHENTICATE request.
@@ -354,7 +355,8 @@ class CommandAuthenticate : public SplitCommand
}
};
-class CommandSASL : public Command
+class CommandSASL final
+ : public Command
{
public:
SimpleExtItem<SaslAuthenticator>& authExt;
diff --git a/src/modules/m_satopic.cpp b/src/modules/m_satopic.cpp
index d62dfde6b..8dac53c96 100644
--- a/src/modules/m_satopic.cpp
+++ b/src/modules/m_satopic.cpp
@@ -26,7 +26,8 @@
#include "inspircd.h"
-class CommandSATopic : public Command
+class CommandSATopic final
+ : public Command
{
public:
CommandSATopic(Module* Creator) : Command(Creator,"SATOPIC", 2, 2)
diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp
index 9f385bee7..9bab93d99 100644
--- a/src/modules/m_sethost.cpp
+++ b/src/modules/m_sethost.cpp
@@ -25,7 +25,8 @@
#include "inspircd.h"
-class CommandSethost : public Command
+class CommandSethost final
+ : public Command
{
public:
std::bitset<UCHAR_MAX + 1> hostmap;
diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp
index 79358c162..125440710 100644
--- a/src/modules/m_setident.cpp
+++ b/src/modules/m_setident.cpp
@@ -27,7 +27,8 @@
#include "inspircd.h"
-class CommandSetident : public Command
+class CommandSetident final
+ : public Command
{
public:
CommandSetident(Module* Creator) : Command(Creator,"SETIDENT", 1)
diff --git a/src/modules/m_setidle.cpp b/src/modules/m_setidle.cpp
index 01d320629..4945b92f5 100644
--- a/src/modules/m_setidle.cpp
+++ b/src/modules/m_setidle.cpp
@@ -34,7 +34,8 @@ enum
RPL_IDLETIMESET = 944
};
-class CommandSetidle : public SplitCommand
+class CommandSetidle final
+ : public SplitCommand
{
public:
CommandSetidle(Module* Creator) : SplitCommand(Creator,"SETIDLE", 1)
diff --git a/src/modules/m_setname.cpp b/src/modules/m_setname.cpp
index d1b6af937..33d6686d3 100644
--- a/src/modules/m_setname.cpp
+++ b/src/modules/m_setname.cpp
@@ -27,7 +27,8 @@
#include "modules/ircv3.h"
#include "modules/ircv3_replies.h"
-class CommandSetName : public SplitCommand
+class CommandSetName final
+ : public SplitCommand
{
private:
IRCv3::Replies::Fail fail;
diff --git a/src/modules/m_showfile.cpp b/src/modules/m_showfile.cpp
index 0d4ac8d14..3de8df9d3 100644
--- a/src/modules/m_showfile.cpp
+++ b/src/modules/m_showfile.cpp
@@ -29,7 +29,8 @@ enum
ERR_NORULES = 434
};
-class CommandShowFile : public Command
+class CommandShowFile final
+ : public Command
{
enum Method
{
diff --git a/src/modules/m_showwhois.cpp b/src/modules/m_showwhois.cpp
index 91df13e32..195d9ff28 100644
--- a/src/modules/m_showwhois.cpp
+++ b/src/modules/m_showwhois.cpp
@@ -43,7 +43,8 @@ class SeeWhois final
}
};
-class WhoisNoticeCmd : public Command
+class WhoisNoticeCmd final
+ : public Command
{
public:
WhoisNoticeCmd(Module* Creator) : Command(Creator,"WHOISNOTICE", 2)
diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp
index b11aa8d18..029a62d4d 100644
--- a/src/modules/m_shun.cpp
+++ b/src/modules/m_shun.cpp
@@ -52,7 +52,8 @@ class ShunFactory : public XLineFactory
}
};
-class CommandShun : public Command
+class CommandShun final
+ : public Command
{
public:
CommandShun(Module* Creator) : Command(Creator, "SHUN", 1, 3)
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index 419d6671b..16f3f94b5 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -273,7 +273,8 @@ class SilenceMessage : public ClientProtocol::Message
}
};
-class CommandSilence : public SplitCommand
+class CommandSilence final
+ : public SplitCommand
{
private:
ClientProtocol::EventProvider msgprov;
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<CommandUID>
+class CommandUID final
+ : public ServerOnlyServerCommand<CommandUID>
{
public:
CommandUID(Module* Creator) : ServerOnlyServerCommand<CommandUID>(Creator, "UID", 10) { }
@@ -120,7 +128,8 @@ class CommandUID : public ServerOnlyServerCommand<CommandUID>
};
};
-class CommandOpertype : public UserOnlyServerCommand<CommandOpertype>
+class CommandOpertype final
+ : public UserOnlyServerCommand<CommandOpertype>
{
public:
CommandOpertype(Module* Creator) : UserOnlyServerCommand<CommandOpertype>(Creator, "OPERTYPE", 1) { }
@@ -135,7 +144,8 @@ class CommandOpertype : public UserOnlyServerCommand<CommandOpertype>
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<CommandFHost>
+class CommandFHost final
+ : public UserOnlyServerCommand<CommandFHost>
{
public:
CommandFHost(Module* Creator) : UserOnlyServerCommand<CommandFHost>(Creator, "FHOST", 1) { }
CmdResult HandleRemote(RemoteUser* user, Params& params);
};
-class CommandFRHost : public UserOnlyServerCommand<CommandFRHost>
+class CommandFRHost final
+ : public UserOnlyServerCommand<CommandFRHost>
{
public:
CommandFRHost(Module* Creator) : UserOnlyServerCommand<CommandFRHost>(Creator, "FRHOST", 1) { }
CmdResult HandleRemote(RemoteUser* user, Params& params);
};
-class CommandFIdent : public UserOnlyServerCommand<CommandFIdent>
+class CommandFIdent final
+ : public UserOnlyServerCommand<CommandFIdent>
{
public:
CommandFIdent(Module* Creator) : UserOnlyServerCommand<CommandFIdent>(Creator, "FIDENT", 1) { }
CmdResult HandleRemote(RemoteUser* user, Params& params);
};
-class CommandFName : public UserOnlyServerCommand<CommandFName>
+class CommandFName final
+ : public UserOnlyServerCommand<CommandFName>
{
public:
CommandFName(Module* Creator) : UserOnlyServerCommand<CommandFName>(Creator, "FNAME", 1) { }
CmdResult HandleRemote(RemoteUser* user, Params& params);
};
-class CommandIJoin : public UserOnlyServerCommand<CommandIJoin>
+class CommandIJoin final
+ : public UserOnlyServerCommand<CommandIJoin>
{
public:
CommandIJoin(Module* Creator) : UserOnlyServerCommand<CommandIJoin>(Creator, "IJOIN", 2) { }
CmdResult HandleRemote(RemoteUser* user, Params& params);
};
-class CommandResync : public ServerOnlyServerCommand<CommandResync>
+class CommandResync final
+ : public ServerOnlyServerCommand<CommandResync>
{
public:
CommandResync(Module* Creator) : ServerOnlyServerCommand<CommandResync>(Creator, "RESYNC", 1) { }
@@ -246,7 +264,8 @@ class CommandResync : public ServerOnlyServerCommand<CommandResync>
RouteDescriptor GetRouting(User* user, const Params& parameters) override { return ROUTE_LOCALONLY; }
};
-class SpanningTree::CommandAway : public UserOnlyServerCommand<SpanningTree::CommandAway>
+class SpanningTree::CommandAway final
+ : public UserOnlyServerCommand<SpanningTree::CommandAway>
{
private:
Away::EventProvider awayevprov;
@@ -267,7 +286,8 @@ class SpanningTree::CommandAway : public UserOnlyServerCommand<SpanningTree::Com
};
class XLine;
-class CommandAddLine : public ServerCommand
+class CommandAddLine final
+ : public ServerCommand
{
public:
CommandAddLine(Module* Creator) : ServerCommand(Creator, "ADDLINE", 6, 6) { }
@@ -280,14 +300,16 @@ class CommandAddLine : public ServerCommand
};
};
-class CommandDelLine : public ServerCommand
+class CommandDelLine final
+ : public ServerCommand
{
public:
CommandDelLine(Module* Creator) : ServerCommand(Creator, "DELLINE", 2, 2) { }
CmdResult Handle(User* user, Params& parameters) override;
};
-class CommandEncap : public ServerCommand
+class CommandEncap final
+ : public ServerCommand
{
public:
CommandEncap(Module* Creator) : ServerCommand(Creator, "ENCAP", 2) { }
@@ -295,7 +317,8 @@ class CommandEncap : public ServerCommand
RouteDescriptor GetRouting(User* user, const Params& parameters) override;
};
-class CommandIdle : public UserOnlyServerCommand<CommandIdle>
+class CommandIdle final
+ : public UserOnlyServerCommand<CommandIdle>
{
public:
CommandIdle(Module* Creator) : UserOnlyServerCommand<CommandIdle>(Creator, "IDLE", 1) { }
@@ -303,14 +326,16 @@ class CommandIdle : public UserOnlyServerCommand<CommandIdle>
RouteDescriptor GetRouting(User* user, const Params& parameters) override { return ROUTE_UNICAST(parameters[0]); }
};
-class SpanningTree::CommandNick : public UserOnlyServerCommand<SpanningTree::CommandNick>
+class SpanningTree::CommandNick final
+ : public UserOnlyServerCommand<SpanningTree::CommandNick>
{
public:
CommandNick(Module* Creator) : UserOnlyServerCommand<SpanningTree::CommandNick>(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<SpanningTree::CommandPong>
+class SpanningTree::CommandPong final
+ : public ServerOnlyServerCommand<SpanningTree::CommandPong>
{
public:
CommandPong(Module* Creator) : ServerOnlyServerCommand<SpanningTree::CommandPong>(Creator, "PONG", 1) { }
@@ -326,7 +352,8 @@ class SpanningTree::CommandPong : public ServerOnlyServerCommand<SpanningTree::C
RouteDescriptor GetRouting(User* user, const Params& parameters) override { return ROUTE_UNICAST(parameters[0]); }
};
-class DllExport CommandSave : public ServerCommand
+class DllExport CommandSave final
+ : public ServerCommand
{
public:
/** Timestamp of the uuid nick of all users who collided and got their nick changed to uuid
@@ -337,7 +364,8 @@ class DllExport CommandSave : public ServerCommand
CmdResult Handle(User* user, Params& parameters) override;
};
-class SpanningTree::CommandServer : public ServerOnlyServerCommand<SpanningTree::CommandServer>
+class SpanningTree::CommandServer final
+ : public ServerOnlyServerCommand<SpanningTree::CommandServer>
{
static void HandleExtra(TreeServer* newserver, Params& params);
@@ -356,28 +384,32 @@ class SpanningTree::CommandServer : public ServerOnlyServerCommand<SpanningTree:
};
};
-class CommandSQuit : public ServerOnlyServerCommand<CommandSQuit>
+class CommandSQuit final
+ : public ServerOnlyServerCommand<CommandSQuit>
{
public:
CommandSQuit(Module* Creator) : ServerOnlyServerCommand<CommandSQuit>(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<CommandEndBurst>
+class CommandEndBurst final
+ : public ServerOnlyServerCommand<CommandEndBurst>
{
public:
CommandEndBurst(Module* Creator) : ServerOnlyServerCommand<CommandEndBurst>(Creator, "ENDBURST") { }
CmdResult HandleServer(TreeServer* server, Params& parameters);
};
-class CommandSInfo : public ServerOnlyServerCommand<CommandSInfo>
+class CommandSInfo final
+ : public ServerOnlyServerCommand<CommandSInfo>
{
public:
CommandSInfo(Module* Creator) : ServerOnlyServerCommand<CommandSInfo>(Creator, "SINFO", 2) { }
@@ -390,7 +422,8 @@ class CommandSInfo : public ServerOnlyServerCommand<CommandSInfo>
};
};
-class CommandNum : public ServerOnlyServerCommand<CommandNum>
+class CommandNum final
+ : public ServerOnlyServerCommand<CommandNum>
{
public:
CommandNum(Module* Creator) : ServerOnlyServerCommand<CommandNum>(Creator, "NUM", 3) { }
@@ -404,7 +437,8 @@ class CommandNum : public ServerOnlyServerCommand<CommandNum>
};
};
-class CommandLMode : public ServerCommand
+class CommandLMode final
+ : public ServerCommand
{
public:
CommandLMode(Module* Creator) : ServerCommand(Creator, "LMODE", 3) { }
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp
index ab16c74e2..de46ffdde 100644
--- a/src/modules/m_sslinfo.cpp
+++ b/src/modules/m_sslinfo.cpp
@@ -153,7 +153,8 @@ class UserCertificateAPIImpl : public UserCertificateAPIBase
}
};
-class CommandSSLInfo : public SplitCommand
+class CommandSSLInfo final
+ : public SplitCommand
{
private:
ChanModeReference sslonlymode;
diff --git a/src/modules/m_starttls.cpp b/src/modules/m_starttls.cpp
index 7d10b9a73..590da9410 100644
--- a/src/modules/m_starttls.cpp
+++ b/src/modules/m_starttls.cpp
@@ -32,7 +32,8 @@ enum
ERR_STARTTLS = 691
};
-class CommandStartTLS : public SplitCommand
+class CommandStartTLS final
+ : public SplitCommand
{
dynamic_reference_nocheck<IOHookProvider>& ssl;
diff --git a/src/modules/m_svshold.cpp b/src/modules/m_svshold.cpp
index 0598127d6..c8914b0bd 100644
--- a/src/modules/m_svshold.cpp
+++ b/src/modules/m_svshold.cpp
@@ -93,7 +93,8 @@ class SVSHoldFactory : public XLineFactory
}
};
-class CommandSvshold : public Command
+class CommandSvshold final
+ : public Command
{
public:
CommandSvshold(Module* Creator) : Command(Creator, "SVSHOLD", 1)
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index 8084901e3..c9aa4f142 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -27,7 +27,8 @@
#include "inspircd.h"
#include "modules/whois.h"
-class CommandSwhois : public Command
+class CommandSwhois final
+ : public Command
{
public:
BoolExtItem operblock;
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index f499642b9..690ba81ae 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -46,7 +46,8 @@ class TimedBan
typedef std::vector<TimedBan> timedbans;
timedbans TimedBanList;
-class CommandTban : public Command
+class CommandTban final
+ : public Command
{
ChanModeReference banmode;
diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp
index 9b6c248ba..d641cc9b6 100644
--- a/src/modules/m_tline.cpp
+++ b/src/modules/m_tline.cpp
@@ -25,7 +25,8 @@
#include "inspircd.h"
-class CommandTline : public Command
+class CommandTline final
+ : public Command
{
public:
CommandTline(Module* Creator) : Command(Creator,"TLINE", 1)
diff --git a/src/modules/m_topiclock.cpp b/src/modules/m_topiclock.cpp
index 84d34b9d1..e17fbbb26 100644
--- a/src/modules/m_topiclock.cpp
+++ b/src/modules/m_topiclock.cpp
@@ -25,7 +25,8 @@ enum
ERR_TOPICLOCK = 744
};
-class CommandSVSTOPIC : public Command
+class CommandSVSTOPIC final
+ : public Command
{
public:
CommandSVSTOPIC(Module* Creator)
diff --git a/src/modules/m_uninvite.cpp b/src/modules/m_uninvite.cpp
index cfa764197..6bca58d00 100644
--- a/src/modules/m_uninvite.cpp
+++ b/src/modules/m_uninvite.cpp
@@ -35,7 +35,8 @@ enum
RPL_UNINVITED = 653
};
-class CommandUninvite : public Command
+class CommandUninvite final
+ : public Command
{
Invite::API invapi;
public:
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp
index ab661c7db..79a9cc73f 100644
--- a/src/modules/m_userip.cpp
+++ b/src/modules/m_userip.cpp
@@ -27,7 +27,8 @@
#include "inspircd.h"
#include "modules/isupport.h"
-class CommandUserip : public Command
+class CommandUserip final
+ : public Command
{
public:
CommandUserip(Module* Creator) : Command(Creator,"USERIP", 1)
diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp
index 8a3fe9bdf..36f552c4c 100644
--- a/src/modules/m_vhost.cpp
+++ b/src/modules/m_vhost.cpp
@@ -49,7 +49,8 @@ struct CustomVhost
typedef std::multimap<std::string, CustomVhost> CustomVhostMap;
-class CommandVhost : public Command
+class CommandVhost final
+ : public Command
{
public:
CustomVhostMap vhosts;
diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp
index a4fc3c06a..e498bf79b 100644
--- a/src/modules/m_watch.cpp
+++ b/src/modules/m_watch.cpp
@@ -44,7 +44,8 @@ enum
ERR_INVALIDWATCHNICK = 942
};
-class CommandWatch : public SplitCommand
+class CommandWatch final
+ : public SplitCommand
{
// Additional penalty for /WATCH commands that request a list from the server
static const unsigned int ListPenalty = 4000;