summaryrefslogtreecommitdiff
path: root/modules/commands/os_defcon.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-23 13:54:16 +0000
committerSadie Powell <sadie@witchery.services>2024-01-23 16:53:06 +0000
commit72acef4e159df5dcdb93b3c13b2f9d2e5e4c21a9 (patch)
treefc0a965612b45478e3b6f1566641df12790a818d /modules/commands/os_defcon.cpp
parenta6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff)
Mark types that have no inheritors as final.
Diffstat (limited to 'modules/commands/os_defcon.cpp')
-rw-r--r--modules/commands/os_defcon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp
index 5ef148faa..5664f5ffb 100644
--- a/modules/commands/os_defcon.cpp
+++ b/modules/commands/os_defcon.cpp
@@ -28,7 +28,7 @@ enum DefconLevel
bool DefConModesSet = false;
-struct DefconConfig
+struct DefconConfig final
{
std::vector<std::bitset<32> > DefCon;
std::set<Anope::string> DefConModesOn, DefConModesOff;
@@ -105,7 +105,7 @@ static ServiceReference<GlobalService> GlobalService("GlobalService", "Global");
static Timer *timeout;
-class DefConTimeout
+class DefConTimeout final
: public Timer
{
int level;
@@ -145,7 +145,7 @@ public:
}
};
-class CommandOSDefcon
+class CommandOSDefcon final
: public Command
{
void SendLevels(CommandSource &source)
@@ -246,7 +246,7 @@ public:
}
};
-class OSDefcon
+class OSDefcon final
: public Module
{
ServiceReference<SessionService> session_service;