summaryrefslogtreecommitdiff
path: root/modules/commands
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
parenta6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff)
Mark types that have no inheritors as final.
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/bs_assign.cpp8
-rw-r--r--modules/commands/bs_badwords.cpp12
-rw-r--r--modules/commands/bs_bot.cpp4
-rw-r--r--modules/commands/bs_botlist.cpp4
-rw-r--r--modules/commands/bs_control.cpp6
-rw-r--r--modules/commands/bs_info.cpp4
-rw-r--r--modules/commands/bs_kick.cpp40
-rw-r--r--modules/commands/bs_set.cpp10
-rw-r--r--modules/commands/cs_access.cpp14
-rw-r--r--modules/commands/cs_akick.cpp8
-rw-r--r--modules/commands/cs_ban.cpp6
-rw-r--r--modules/commands/cs_clone.cpp4
-rw-r--r--modules/commands/cs_drop.cpp4
-rw-r--r--modules/commands/cs_enforce.cpp4
-rw-r--r--modules/commands/cs_entrymsg.cpp8
-rw-r--r--modules/commands/cs_flags.cpp8
-rw-r--r--modules/commands/cs_getkey.cpp4
-rw-r--r--modules/commands/cs_info.cpp4
-rw-r--r--modules/commands/cs_invite.cpp4
-rw-r--r--modules/commands/cs_kick.cpp4
-rw-r--r--modules/commands/cs_list.cpp6
-rw-r--r--modules/commands/cs_log.cpp10
-rw-r--r--modules/commands/cs_mode.cpp10
-rw-r--r--modules/commands/cs_register.cpp4
-rw-r--r--modules/commands/cs_seen.cpp8
-rw-r--r--modules/commands/cs_set.cpp34
-rw-r--r--modules/commands/cs_set_misc.cpp6
-rw-r--r--modules/commands/cs_status.cpp4
-rw-r--r--modules/commands/cs_suspend.cpp10
-rw-r--r--modules/commands/cs_sync.cpp4
-rw-r--r--modules/commands/cs_topic.cpp6
-rw-r--r--modules/commands/cs_unban.cpp4
-rw-r--r--modules/commands/cs_updown.cpp6
-rw-r--r--modules/commands/cs_xop.cpp12
-rw-r--r--modules/commands/gl_global.cpp4
-rw-r--r--modules/commands/greet.cpp6
-rw-r--r--modules/commands/help.cpp4
-rw-r--r--modules/commands/hs_del.cpp6
-rw-r--r--modules/commands/hs_group.cpp4
-rw-r--r--modules/commands/hs_list.cpp4
-rw-r--r--modules/commands/hs_off.cpp4
-rw-r--r--modules/commands/hs_on.cpp4
-rw-r--r--modules/commands/hs_request.cpp12
-rw-r--r--modules/commands/hs_set.cpp6
-rw-r--r--modules/commands/ms_cancel.cpp4
-rw-r--r--modules/commands/ms_check.cpp4
-rw-r--r--modules/commands/ms_del.cpp6
-rw-r--r--modules/commands/ms_ignore.cpp4
-rw-r--r--modules/commands/ms_info.cpp4
-rw-r--r--modules/commands/ms_list.cpp6
-rw-r--r--modules/commands/ms_read.cpp6
-rw-r--r--modules/commands/ms_rsend.cpp4
-rw-r--r--modules/commands/ms_send.cpp4
-rw-r--r--modules/commands/ms_sendall.cpp4
-rw-r--r--modules/commands/ms_set.cpp4
-rw-r--r--modules/commands/ms_staff.cpp4
-rw-r--r--modules/commands/ns_access.cpp4
-rw-r--r--modules/commands/ns_ajoin.cpp8
-rw-r--r--modules/commands/ns_alist.cpp4
-rw-r--r--modules/commands/ns_cert.cpp10
-rw-r--r--modules/commands/ns_drop.cpp4
-rw-r--r--modules/commands/ns_getemail.cpp4
-rw-r--r--modules/commands/ns_group.cpp10
-rw-r--r--modules/commands/ns_identify.cpp6
-rw-r--r--modules/commands/ns_info.cpp6
-rw-r--r--modules/commands/ns_list.cpp6
-rw-r--r--modules/commands/ns_logout.cpp4
-rw-r--r--modules/commands/ns_recover.cpp8
-rw-r--r--modules/commands/ns_register.cpp8
-rw-r--r--modules/commands/ns_resetpass.cpp6
-rw-r--r--modules/commands/ns_set.cpp32
-rw-r--r--modules/commands/ns_set_misc.cpp6
-rw-r--r--modules/commands/ns_status.cpp4
-rw-r--r--modules/commands/ns_suspend.cpp10
-rw-r--r--modules/commands/ns_update.cpp4
-rw-r--r--modules/commands/os_akill.cpp8
-rw-r--r--modules/commands/os_chankill.cpp4
-rw-r--r--modules/commands/os_config.cpp4
-rw-r--r--modules/commands/os_defcon.cpp8
-rw-r--r--modules/commands/os_dns.cpp8
-rw-r--r--modules/commands/os_forbid.cpp8
-rw-r--r--modules/commands/os_ignore.cpp8
-rw-r--r--modules/commands/os_info.cpp8
-rw-r--r--modules/commands/os_jupe.cpp4
-rw-r--r--modules/commands/os_kick.cpp4
-rw-r--r--modules/commands/os_kill.cpp4
-rw-r--r--modules/commands/os_list.cpp6
-rw-r--r--modules/commands/os_login.cpp6
-rw-r--r--modules/commands/os_logsearch.cpp4
-rw-r--r--modules/commands/os_mode.cpp6
-rw-r--r--modules/commands/os_modinfo.cpp6
-rw-r--r--modules/commands/os_module.cpp8
-rw-r--r--modules/commands/os_news.cpp12
-rw-r--r--modules/commands/os_noop.cpp4
-rw-r--r--modules/commands/os_oper.cpp6
-rw-r--r--modules/commands/os_reload.cpp4
-rw-r--r--modules/commands/os_session.cpp12
-rw-r--r--modules/commands/os_set.cpp4
-rw-r--r--modules/commands/os_shutdown.cpp8
-rw-r--r--modules/commands/os_stats.cpp6
-rw-r--r--modules/commands/os_svs.cpp8
-rw-r--r--modules/commands/os_sxline.cpp10
-rw-r--r--modules/commands/os_update.cpp4
103 files changed, 359 insertions, 359 deletions
diff --git a/modules/commands/bs_assign.cpp b/modules/commands/bs_assign.cpp
index e1e744842..43abdd55f 100644
--- a/modules/commands/bs_assign.cpp
+++ b/modules/commands/bs_assign.cpp
@@ -11,7 +11,7 @@
#include "module.h"
-class CommandBSAssign
+class CommandBSAssign final
: public Command
{
public:
@@ -83,7 +83,7 @@ public:
}
};
-class CommandBSUnassign
+class CommandBSUnassign final
: public Command
{
public:
@@ -147,7 +147,7 @@ public:
}
};
-class CommandBSSetNoBot
+class CommandBSSetNoBot final
: public Command
{
public:
@@ -205,7 +205,7 @@ public:
}
};
-class BSAssign
+class BSAssign final
: public Module
{
ExtensibleItem<bool> nobot;
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp
index cf863e442..e513170e7 100644
--- a/modules/commands/bs_badwords.cpp
+++ b/modules/commands/bs_badwords.cpp
@@ -12,7 +12,7 @@
#include "module.h"
#include "modules/bs_badwords.h"
-struct BadWordImpl
+struct BadWordImpl final
: BadWord
, Serializable
{
@@ -29,7 +29,7 @@ struct BadWordImpl
static Serializable* Unserialize(Serializable *obj, Serialize::Data &);
};
-struct BadWordsImpl
+struct BadWordsImpl final
: BadWords
{
Serialize::Reference<ChannelInfo> ci;
@@ -147,7 +147,7 @@ Serializable* BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data)
return bw;
}
-class BadwordsDelCallback
+class BadwordsDelCallback final
: public NumberList
{
CommandSource &source;
@@ -185,7 +185,7 @@ public:
}
};
-class CommandBSBadwords
+class CommandBSBadwords final
: public Command
{
private:
@@ -205,7 +205,7 @@ private:
}
else if (!word.empty() && word.find_first_not_of("1234567890,-") == Anope::string::npos)
{
- class BadwordsListCallback
+ class BadwordsListCallback final
: public NumberList
{
ListFormatter &list;
@@ -459,7 +459,7 @@ public:
}
};
-class BSBadwords
+class BSBadwords final
: public Module
{
CommandBSBadwords commandbsbadwords;
diff --git a/modules/commands/bs_bot.cpp b/modules/commands/bs_bot.cpp
index e882d3e04..170e1073a 100644
--- a/modules/commands/bs_bot.cpp
+++ b/modules/commands/bs_bot.cpp
@@ -11,7 +11,7 @@
#include "module.h"
-class CommandBSBot
+class CommandBSBot final
: public Command
{
private:
@@ -371,7 +371,7 @@ public:
}
};
-class BSBot
+class BSBot final
: public Module
{
CommandBSBot commandbsbot;
diff --git a/modules/commands/bs_botlist.cpp b/modules/commands/bs_botlist.cpp
index 828b5af99..915117916 100644
--- a/modules/commands/bs_botlist.cpp
+++ b/modules/commands/bs_botlist.cpp
@@ -11,7 +11,7 @@
#include "module.h"
-class CommandBSBotList
+class CommandBSBotList final
: public Command
{
public:
@@ -66,7 +66,7 @@ public:
}
};
-class BSBotList
+class BSBotList final
: public Module
{
CommandBSBotList commandbsbotlist;
diff --git a/modules/commands/bs_control.cpp b/modules/commands/bs_control.cpp
index 1230f03e1..32101be6e 100644
--- a/modules/commands/bs_control.cpp
+++ b/modules/commands/bs_control.cpp
@@ -11,7 +11,7 @@
#include "module.h"
-class CommandBSSay
+class CommandBSSay final
: public Command
{
public:
@@ -72,7 +72,7 @@ public:
}
};
-class CommandBSAct
+class CommandBSAct final
: public Command
{
public:
@@ -132,7 +132,7 @@ public:
}
};
-class BSControl
+class BSControl final
: public Module
{
CommandBSSay commandbssay;
diff --git a/modules/commands/bs_info.cpp b/modules/commands/bs_info.cpp
index f8381836d..e42ad23b8 100644
--- a/modules/commands/bs_info.cpp
+++ b/modules/commands/bs_info.cpp
@@ -11,7 +11,7 @@
#include "module.h"
-class CommandBSInfo
+class CommandBSInfo final
: public Command
{
private:
@@ -118,7 +118,7 @@ public:
}
};
-class BSInfo
+class BSInfo final
: public Module
{
CommandBSInfo commandbsinfo;
diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp
index e02c6cab8..f6012d07f 100644
--- a/modules/commands/bs_kick.cpp
+++ b/modules/commands/bs_kick.cpp
@@ -15,7 +15,7 @@
static Module *me;
-struct KickerDataImpl
+struct KickerDataImpl final
: KickerData
{
KickerDataImpl(Extensible *obj)
@@ -38,7 +38,7 @@ struct KickerDataImpl
ci->Shrink<KickerData>("kickerdata");
}
- struct ExtensibleItem
+ struct ExtensibleItem final
: ::ExtensibleItem<KickerDataImpl>
{
ExtensibleItem(Module *m, const Anope::string &ename) : ::ExtensibleItem<KickerDataImpl>(m, ename) { }
@@ -117,7 +117,7 @@ struct KickerDataImpl
};
};
-class CommandBSKick
+class CommandBSKick final
: public Command
{
public:
@@ -248,7 +248,7 @@ protected:
}
};
-class CommandBSKickAMSG
+class CommandBSKickAMSG final
: public CommandBSKickBase
{
public:
@@ -285,7 +285,7 @@ public:
}
};
-class CommandBSKickBadwords
+class CommandBSKickBadwords final
: public CommandBSKickBase
{
public:
@@ -325,7 +325,7 @@ public:
}
};
-class CommandBSKickBolds
+class CommandBSKickBolds final
: public CommandBSKickBase
{
public:
@@ -360,7 +360,7 @@ public:
}
};
-class CommandBSKickCaps
+class CommandBSKickCaps final
: public CommandBSKickBase
{
public:
@@ -457,7 +457,7 @@ public:
}
};
-class CommandBSKickColors
+class CommandBSKickColors final
: public CommandBSKickBase
{
public:
@@ -492,7 +492,7 @@ public:
}
};
-class CommandBSKickFlood
+class CommandBSKickFlood final
: public CommandBSKickBase
{
public:
@@ -591,7 +591,7 @@ public:
}
};
-class CommandBSKickItalics
+class CommandBSKickItalics final
: public CommandBSKickBase
{