diff options
Diffstat (limited to 'modules/commands')
-rw-r--r-- | modules/commands/bs_badwords.cpp | 6 | ||||
-rw-r--r-- | modules/commands/bs_kick.cpp | 4 | ||||
-rw-r--r-- | modules/commands/cs_access.cpp | 2 | ||||
-rw-r--r-- | modules/commands/cs_akick.cpp | 2 | ||||
-rw-r--r-- | modules/commands/cs_entrymsg.cpp | 2 | ||||
-rw-r--r-- | modules/commands/cs_log.cpp | 4 | ||||
-rw-r--r-- | modules/commands/cs_mode.cpp | 4 | ||||
-rw-r--r-- | modules/commands/cs_seen.cpp | 2 | ||||
-rw-r--r-- | modules/commands/cs_set_misc.cpp | 2 | ||||
-rw-r--r-- | modules/commands/cs_xop.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ms_read.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_ajoin.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_cert.cpp | 2 | ||||
-rw-r--r-- | modules/commands/ns_set_misc.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_akill.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_defcon.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_dns.cpp | 6 | ||||
-rw-r--r-- | modules/commands/os_forbid.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_ignore.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_info.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_news.cpp | 8 | ||||
-rw-r--r-- | modules/commands/os_oper.cpp | 2 | ||||
-rw-r--r-- | modules/commands/os_session.cpp | 4 | ||||
-rw-r--r-- | modules/commands/os_sxline.cpp | 4 |
24 files changed, 36 insertions, 36 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index c3d2a9706..5f14a2eb6 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -15,7 +15,7 @@ struct BadWordImpl : BadWord, Serializable { BadWordImpl() : Serializable("BadWord") { } - ~BadWordImpl(); + ~BadWordImpl() override; void Serialize(Serialize::Data &data) const override { @@ -35,7 +35,7 @@ struct BadWordsImpl : BadWords BadWordsImpl(Extensible *obj) : ci(anope_dynamic_static_cast<ChannelInfo *>(obj)), badwords("BadWord") { } - ~BadWordsImpl(); + ~BadWordsImpl() override; BadWord* AddBadWord(const Anope::string &word, BadWordType type) override { @@ -160,7 +160,7 @@ class BadwordsDelCallback : public NumberList bw = ci->Require<BadWords>("badwords"); } - ~BadwordsDelCallback() + ~BadwordsDelCallback() override { if (!deleted) source.Reply(_("No matching entries on %s bad words list."), ci->name.c_str()); diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp index bf8071167..9a376d9d2 100644 --- a/modules/commands/bs_kick.cpp +++ b/modules/commands/bs_kick.cpp @@ -165,9 +165,9 @@ class CommandBSKickBase : public Command { } - virtual void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override = 0; + void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override = 0; - virtual bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; + bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; protected: bool CheckArguments(CommandSource &source, const std::vector<Anope::string> ¶ms, ChannelInfo* &ci) diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index e8affd1f3..e75a840d3 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -261,7 +261,7 @@ class CommandCSAccess : public Command this->override = true; } - ~AccessDelCallback() + ~AccessDelCallback() override { if (denied && !deleted) source.Reply(ACCESS_DENIED); diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp index e0acdbbfa..04ee17da3 100644 --- a/modules/commands/cs_akick.cpp +++ b/modules/commands/cs_akick.cpp @@ -218,7 +218,7 @@ class CommandCSAKick : public Command { } - ~AkickDelCallback() + ~AkickDelCallback() override { if (!deleted) source.Reply(_("No matching entries on %s autokick list."), ci->name.c_str()); diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp index a694afdb5..84b33423d 100644 --- a/modules/commands/cs_entrymsg.cpp +++ b/modules/commands/cs_entrymsg.cpp @@ -26,7 +26,7 @@ struct EntryMsgImpl : EntryMsg, Serializable this->when = ct; } - ~EntryMsgImpl(); + ~EntryMsgImpl() override; void Serialize(Serialize::Data &data) const override { diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index 59f164b6d..51f3ab8fe 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -18,7 +18,7 @@ struct LogSettingImpl : LogSetting, Serializable { } - ~LogSettingImpl() + ~LogSettingImpl() override { ChannelInfo *ci = ChannelInfo::Find(chan); if (ci) @@ -81,7 +81,7 @@ struct LogSettingsImpl : LogSettings { LogSettingsImpl(Extensible *) { } - ~LogSettingsImpl() + ~LogSettingsImpl() override { for (iterator it = (*this)->begin(); it != (*this)->end();) { diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 91a9c26fd..fcd6222d4 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -18,7 +18,7 @@ struct ModeLockImpl : ModeLock, Serializable { } - ~ModeLockImpl() + ~ModeLockImpl() override { ChannelInfo *chan = ChannelInfo::Find(ci); if (chan) @@ -42,7 +42,7 @@ struct ModeLocksImpl : ModeLocks { } - ~ModeLocksImpl() + ~ModeLocksImpl() override { ModeList modelist; mlocks->swap(modelist); diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp index 8ad8aeffe..0151a5a36 100644 --- a/modules/commands/cs_seen.cpp +++ b/modules/commands/cs_seen.cpp @@ -36,7 +36,7 @@ struct SeenInfo : Serializable { } - ~SeenInfo() + ~SeenInfo() override { database_map::iterator iter = database.find(nick); if (iter != database.end() && iter->second == this) diff --git a/modules/commands/cs_set_misc.cpp b/modules/commands/cs_set_misc.cpp index 2c81a2345..477595ad8 100644 --- a/modules/commands/cs_set_misc.cpp +++ b/modules/commands/cs_set_misc.cpp @@ -176,7 +176,7 @@ class CSSetMisc : public Module me = this; } - ~CSSetMisc() + ~CSSetMisc() override { for (Anope::map<ExtensibleItem<CSMiscData> *>::iterator it = items.begin(); it != items.end(); ++it) delete it->second; diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp index 039e856d3..e2cd82064 100644 --- a/modules/commands/cs_xop.cpp +++ b/modules/commands/cs_xop.cpp @@ -288,7 +288,7 @@ class CommandCSXOP : public Command { } - ~XOPDelCallback() + ~XOPDelCallback() override { if (!deleted) source.Reply(_("No matching entries on %s %s list."), ci->name.c_str(), source.command.c_str()); diff --git a/modules/commands/ms_read.cpp b/modules/commands/ms_read.cpp index a4204e0c2..0fee45e31 100644 --- a/modules/commands/ms_read.cpp +++ b/modules/commands/ms_read.cpp @@ -59,7 +59,7 @@ class MemoListCallback : public NumberList found = false; } - ~MemoListCallback() + ~MemoListCallback() override { if (!found) source.Reply(_("No memos to display.")); diff --git a/modules/commands/ns_ajoin.cpp b/modules/commands/ns_ajoin.cpp index b1c9fa995..1bee6faf8 100644 --- a/modules/commands/ns_ajoin.cpp +++ b/modules/commands/ns_ajoin.cpp @@ -27,7 +27,7 @@ struct AJoinEntry : Serializable AJoinEntry(Extensible *) : Serializable("AJoinEntry") { } - ~AJoinEntry() + ~AJoinEntry() override { AJoinList *channels = owner->GetExt<AJoinList>("ajoinlist"); if (channels) diff --git a/modules/commands/ns_cert.cpp b/modules/commands/ns_cert.cpp index c2a74e71e..e21d1e6f3 100644 --- a/modules/commands/ns_cert.cpp +++ b/modules/commands/ns_cert.cpp @@ -35,7 +35,7 @@ struct NSCertListImpl : NSCertList public: NSCertListImpl(Extensible *obj) : nc(anope_dynamic_static_cast<NickCore *>(obj)) { } - ~NSCertListImpl() + ~NSCertListImpl() override { ClearCert(); } diff --git a/modules/commands/ns_set_misc.cpp b/modules/commands/ns_set_misc.cpp index f896ba461..db7a1e8ef 100644 --- a/modules/commands/ns_set_misc.cpp +++ b/modules/commands/ns_set_misc.cpp @@ -189,7 +189,7 @@ class NSSetMisc : public Module me = this; } - ~NSSetMisc() + ~NSSetMisc() override { for (Anope::map<ExtensibleItem<NSMiscData> *>::iterator it = items.begin(); it != items.end(); ++it) delete it->second; diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp index 4258d4a97..56203e4c1 100644 --- a/modules/commands/os_akill.cpp +++ b/modules/commands/os_akill.cpp @@ -23,7 +23,7 @@ class AkillDelCallback : public NumberList { } - ~AkillDelCallback() + ~AkillDelCallback() override { if (!deleted) source.Reply(_("No matching entries on the AKILL list.")); diff --git a/modules/commands/os_defcon.cpp b/modules/commands/os_defcon.cpp index 89c555565..7721d7815 100644 --- a/modules/commands/os_defcon.cpp +++ b/modules/commands/os_defcon.cpp @@ -115,7 +115,7 @@ class DefConTimeout : public Timer timeout = this; } - ~DefConTimeout() + ~DefConTimeout() override { timeout = NULL; } diff --git a/modules/commands/os_dns.cpp b/modules/commands/os_dns.cpp index c562815eb..bcc1eaef0 100644 --- a/modules/commands/os_dns.cpp +++ b/modules/commands/os_dns.cpp @@ -29,7 +29,7 @@ struct DNSZone : Serializable zones->push_back(this); } - ~DNSZone() + ~DNSZone() override { std::vector<DNSZone *>::iterator it = std::find(zones->begin(), zones->end(), this); if (it != zones->end()) @@ -104,7 +104,7 @@ class DNSServer : public Serializable dns_servers->push_back(this); } - ~DNSServer() + ~DNSServer() override { std::vector<DNSServer *>::iterator it = std::find(dns_servers->begin(), dns_servers->end(), this); if (it != dns_servers->end()) @@ -743,7 +743,7 @@ class ModuleDNS : public Module } } - ~ModuleDNS() + ~ModuleDNS() override { for (unsigned i = zones->size(); i > 0; --i) delete zones->at(i - 1); diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp index 54323a75e..7c907a9f7 100644 --- a/modules/commands/os_forbid.cpp +++ b/modules/commands/os_forbid.cpp @@ -68,7 +68,7 @@ class MyForbidService : public ForbidService public: MyForbidService(Module *m) : ForbidService(m), forbid_data("ForbidData") { } - ~MyForbidService() + ~MyForbidService() override { std::vector<ForbidData *> f = GetForbids(); for (unsigned i = 0; i < f.size(); ++i) diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp index 512039d83..685e49d36 100644 --- a/modules/commands/os_ignore.cpp +++ b/modules/commands/os_ignore.cpp @@ -15,7 +15,7 @@ struct IgnoreDataImpl : IgnoreData, Serializable { IgnoreDataImpl() : Serializable("IgnoreData") { } - ~IgnoreDataImpl(); + ~IgnoreDataImpl() override; void Serialize(Serialize::Data &data) const override; static Serializable* Unserialize(Serializable *obj, Serialize::Data &data); }; diff --git a/modules/commands/os_info.cpp b/modules/commands/os_info.cpp index c1c7f85fb..95d48ba16 100644 --- a/modules/commands/os_info.cpp +++ b/modules/commands/os_info.cpp @@ -19,7 +19,7 @@ struct OperInfo : Serializable OperInfo(const Anope::string &t, const Anope::string &i, const Anope::string &a, time_t c) : Serializable("OperInfo"), target(t), info(i), adder(a), created(c) { } - ~OperInfo(); + ~OperInfo() override; void Serialize(Serialize::Data &data) const override { diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index 4cc98cc27..373774570 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -99,7 +99,7 @@ class MyNewsService : public NewsService public: MyNewsService(Module *m) : NewsService(m) { } - ~MyNewsService() + ~MyNewsService() override { for (unsigned i = 0; i < 3; ++i) for (unsigned j = 0; j < newsItems[i].size(); ++j) @@ -280,13 +280,13 @@ class NewsBase : public Command this->SetSyntax("LIST"); } - virtual ~NewsBase() + ~NewsBase() override { } - virtual void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) = 0; + void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override = 0; - virtual bool OnHelp(CommandSource &source, const Anope::string &subcommand) = 0; + bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; }; class CommandOSLogonNews : public NewsBase diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp index 7ba6cacdf..0d17b0cd6 100644 --- a/modules/commands/os_oper.cpp +++ b/modules/commands/os_oper.cpp @@ -265,7 +265,7 @@ class OSOper : public Module { } - ~OSOper() + ~OSOper() override { for (nickcore_map::const_iterator it = NickCoreList->begin(), it_end = NickCoreList->end(); it != it_end; ++it) { diff --git a/modules/commands/os_session.cpp b/modules/commands/os_session.cpp index 22d09344e..517b22279 100644 --- a/modules/commands/os_session.cpp +++ b/modules/commands/os_session.cpp @@ -139,7 +139,7 @@ class ExceptionDelCallback : public NumberList { } - ~ExceptionDelCallback() + ~ExceptionDelCallback() override { if (!deleted) source.Reply(_("No matching entries on session-limit exception list.")); @@ -149,7 +149,7 @@ class ExceptionDelCallback : public NumberList source.Reply(_("Deleted %d entries from session-limit exception list."), deleted); } - virtual void HandleNumber(unsigned number) override + void HandleNumber(unsigned number) override { if (!number || number > session_service->GetExceptions().size()) return; diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp index 7151551b7..87a952a31 100644 --- a/modules/commands/os_sxline.cpp +++ b/modules/commands/os_sxline.cpp @@ -22,7 +22,7 @@ class SXLineDelCallback : public NumberList { } - ~SXLineDelCallback() + ~SXLineDelCallback() override { if (!deleted) source.Reply(_("No matching entries on the %s list."), source.command.c_str()); @@ -253,7 +253,7 @@ class CommandOSSXLineBase : public Command return; } - virtual bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; + bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; }; class CommandOSSNLine : public CommandOSSXLineBase |