From 6538641e8703084460df70d04196ac271eff1266 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 17 Dec 2023 13:59:49 +0000 Subject: Remove some unnecessary spaces that break editor indentation. --- modules/bs_autoassign.cpp | 2 +- modules/commands/bs_assign.cpp | 8 ++--- modules/commands/bs_badwords.cpp | 10 +++---- modules/commands/bs_bot.cpp | 6 ++-- modules/commands/bs_botlist.cpp | 4 +-- modules/commands/bs_control.cpp | 6 ++-- modules/commands/bs_info.cpp | 6 ++-- modules/commands/bs_kick.cpp | 38 +++++++++++------------ modules/commands/bs_set.cpp | 10 +++---- modules/commands/cs_access.cpp | 14 ++++----- modules/commands/cs_akick.cpp | 8 ++--- modules/commands/cs_ban.cpp | 8 ++--- modules/commands/cs_clone.cpp | 2 +- modules/commands/cs_drop.cpp | 4 +-- modules/commands/cs_enforce.cpp | 6 ++-- modules/commands/cs_entrymsg.cpp | 6 ++-- modules/commands/cs_flags.cpp | 8 ++--- modules/commands/cs_getkey.cpp | 4 +-- modules/commands/cs_info.cpp | 4 +-- modules/commands/cs_invite.cpp | 4 +-- modules/commands/cs_kick.cpp | 4 +-- modules/commands/cs_list.cpp | 6 ++-- modules/commands/cs_log.cpp | 2 +- modules/commands/cs_mode.cpp | 6 ++-- modules/commands/cs_register.cpp | 4 +-- modules/commands/cs_seen.cpp | 8 ++--- modules/commands/cs_set.cpp | 32 ++++++++++---------- modules/commands/cs_set_misc.cpp | 4 +-- modules/commands/cs_status.cpp | 2 +- modules/commands/cs_suspend.cpp | 6 ++-- modules/commands/cs_sync.cpp | 4 +-- modules/commands/cs_topic.cpp | 6 ++-- modules/commands/cs_unban.cpp | 4 +-- modules/commands/cs_updown.cpp | 6 ++-- modules/commands/cs_xop.cpp | 14 ++++----- modules/commands/gl_global.cpp | 4 +-- modules/commands/greet.cpp | 8 ++--- modules/commands/help.cpp | 4 +-- modules/commands/hs_del.cpp | 6 ++-- modules/commands/hs_group.cpp | 4 +-- modules/commands/hs_list.cpp | 4 +-- modules/commands/hs_off.cpp | 4 +-- modules/commands/hs_on.cpp | 4 +-- modules/commands/hs_request.cpp | 10 +++---- modules/commands/hs_set.cpp | 6 ++-- modules/commands/ms_cancel.cpp | 4 +-- modules/commands/ms_check.cpp | 4 +-- modules/commands/ms_del.cpp | 6 ++-- modules/commands/ms_ignore.cpp | 4 +-- modules/commands/ms_info.cpp | 4 +-- modules/commands/ms_list.cpp | 6 ++-- modules/commands/ms_read.cpp | 6 ++-- modules/commands/ms_rsend.cpp | 4 +-- modules/commands/ms_send.cpp | 4 +-- modules/commands/ms_sendall.cpp | 4 +-- modules/commands/ms_set.cpp | 6 ++-- modules/commands/ms_staff.cpp | 4 +-- modules/commands/ns_access.cpp | 6 ++-- modules/commands/ns_ajoin.cpp | 4 +-- modules/commands/ns_alist.cpp | 4 +-- modules/commands/ns_cert.cpp | 8 ++--- modules/commands/ns_drop.cpp | 4 +-- modules/commands/ns_getemail.cpp | 4 +-- modules/commands/ns_group.cpp | 10 +++---- modules/commands/ns_identify.cpp | 6 ++-- modules/commands/ns_info.cpp | 8 ++--- modules/commands/ns_list.cpp | 8 ++--- modules/commands/ns_logout.cpp | 4 +-- modules/commands/ns_recover.cpp | 8 ++--- modules/commands/ns_register.cpp | 8 ++--- modules/commands/ns_resetpass.cpp | 4 +-- modules/commands/ns_set.cpp | 48 +++++++++++++++--------------- modules/commands/ns_set_misc.cpp | 6 ++-- modules/commands/ns_status.cpp | 4 +-- modules/commands/ns_suspend.cpp | 6 ++-- modules/commands/ns_update.cpp | 4 +-- modules/commands/os_akill.cpp | 10 +++---- modules/commands/os_chankill.cpp | 4 +-- modules/commands/os_config.cpp | 4 +-- modules/commands/os_defcon.cpp | 6 ++-- modules/commands/os_dns.cpp | 6 ++-- modules/commands/os_forbid.cpp | 6 ++-- modules/commands/os_ignore.cpp | 8 ++--- modules/commands/os_info.cpp | 4 +-- modules/commands/os_jupe.cpp | 4 +-- modules/commands/os_kick.cpp | 4 +-- modules/commands/os_kill.cpp | 4 +-- modules/commands/os_list.cpp | 6 ++-- modules/commands/os_login.cpp | 6 ++-- modules/commands/os_logsearch.cpp | 4 +-- modules/commands/os_mode.cpp | 6 ++-- modules/commands/os_modinfo.cpp | 6 ++-- modules/commands/os_module.cpp | 8 ++--- modules/commands/os_news.cpp | 14 ++++----- modules/commands/os_noop.cpp | 4 +-- modules/commands/os_oper.cpp | 4 +-- modules/commands/os_reload.cpp | 4 +-- modules/commands/os_session.cpp | 18 +++++------ modules/commands/os_set.cpp | 6 ++-- modules/commands/os_shutdown.cpp | 8 ++--- modules/commands/os_stats.cpp | 6 ++-- modules/commands/os_svs.cpp | 8 ++--- modules/commands/os_sxline.cpp | 14 ++++----- modules/commands/os_update.cpp | 4 +-- modules/cs_statusupdate.cpp | 2 +- modules/database/db_flatfile.cpp | 6 ++-- modules/database/db_old.cpp | 2 +- modules/database/db_redis.cpp | 18 +++++------ modules/database/db_sql.cpp | 4 +-- modules/database/db_sql_live.cpp | 4 +-- modules/encryption/enc_bcrypt.cpp | 2 +- modules/encryption/enc_md5.cpp | 6 ++-- modules/encryption/enc_none.cpp | 2 +- modules/encryption/enc_old.cpp | 4 +-- modules/encryption/enc_sha1.cpp | 6 ++-- modules/encryption/enc_sha256.cpp | 6 ++-- modules/extra/m_ldap.cpp | 24 +++++++-------- modules/extra/m_ldap_authentication.cpp | 8 ++--- modules/extra/m_ldap_oper.cpp | 4 +-- modules/extra/m_mysql.cpp | 8 ++--- modules/extra/m_regex_pcre2.cpp | 6 ++-- modules/extra/m_regex_posix.cpp | 6 ++-- modules/extra/m_regex_tre.cpp | 6 ++-- modules/extra/m_sql_authentication.cpp | 4 +-- modules/extra/m_sql_log.cpp | 2 +- modules/extra/m_sql_oper.cpp | 4 +-- modules/extra/m_sqlite.cpp | 6 ++-- modules/extra/m_ssl_gnutls.cpp | 20 ++++++------- modules/extra/m_ssl_openssl.cpp | 6 ++-- modules/extra/stats/cs_fantasy_stats.cpp | 8 ++--- modules/extra/stats/cs_fantasy_top.cpp | 12 ++++---- modules/extra/stats/irc2sql/irc2sql.h | 4 +-- modules/extra/stats/m_chanstats.cpp | 14 ++++----- modules/fantasy.cpp | 4 +-- modules/m_dns.cpp | 22 +++++++------- modules/m_dnsbl.cpp | 4 +-- modules/m_helpchan.cpp | 2 +- modules/m_httpd.cpp | 6 ++-- modules/m_proxyscan.cpp | 16 +++++----- modules/m_redis.cpp | 14 ++++----- modules/m_rewrite.cpp | 4 +-- modules/m_sasl.cpp | 10 +++---- modules/m_xmlrpc.cpp | 8 ++--- modules/m_xmlrpc_main.cpp | 8 ++--- modules/ns_maxemail.cpp | 2 +- modules/protocol/bahamut.cpp | 6 ++-- modules/protocol/hybrid.cpp | 4 +-- modules/protocol/inspircd.cpp | 36 +++++++++++----------- modules/protocol/ngircd.cpp | 4 +-- modules/protocol/plexus.cpp | 4 +-- modules/protocol/ratbox.cpp | 4 +-- modules/protocol/solanum.cpp | 6 ++-- modules/protocol/unrealircd.cpp | 34 ++++++++++----------- modules/pseudoclients/botserv.cpp | 2 +- modules/pseudoclients/chanserv.cpp | 4 +-- modules/pseudoclients/global.cpp | 2 +- modules/pseudoclients/hostserv.cpp | 2 +- modules/pseudoclients/memoserv.cpp | 2 +- modules/pseudoclients/nickserv.cpp | 8 ++--- modules/pseudoclients/operserv.cpp | 8 ++--- modules/webcpanel/pages/chanserv/access.h | 2 +- modules/webcpanel/pages/chanserv/akick.h | 2 +- modules/webcpanel/pages/chanserv/drop.h | 2 +- modules/webcpanel/pages/chanserv/info.h | 2 +- modules/webcpanel/pages/chanserv/modes.h | 2 +- modules/webcpanel/pages/chanserv/set.h | 2 +- modules/webcpanel/pages/confirm.h | 2 +- modules/webcpanel/pages/hostserv/request.h | 2 +- modules/webcpanel/pages/index.cpp | 2 +- modules/webcpanel/pages/index.h | 2 +- modules/webcpanel/pages/logout.h | 2 +- modules/webcpanel/pages/memoserv/memos.h | 2 +- modules/webcpanel/pages/nickserv/access.h | 2 +- modules/webcpanel/pages/nickserv/alist.h | 2 +- modules/webcpanel/pages/nickserv/cert.h | 2 +- modules/webcpanel/pages/nickserv/confirm.h | 2 +- modules/webcpanel/pages/nickserv/info.h | 2 +- modules/webcpanel/pages/operserv/akill.h | 2 +- modules/webcpanel/pages/register.h | 2 +- modules/webcpanel/static_fileserver.h | 2 +- modules/webcpanel/template_fileserver.h | 2 +- modules/webcpanel/webcpanel.cpp | 2 +- modules/webcpanel/webcpanel.h | 6 ++-- 183 files changed, 598 insertions(+), 598 deletions(-) (limited to 'modules') diff --git a/modules/bs_autoassign.cpp b/modules/bs_autoassign.cpp index 27215e56b..d50f2827d 100644 --- a/modules/bs_autoassign.cpp +++ b/modules/bs_autoassign.cpp @@ -11,7 +11,7 @@ class BSAutoAssign : public Module { - public: +public: BSAutoAssign(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) { } diff --git a/modules/commands/bs_assign.cpp b/modules/commands/bs_assign.cpp index 53d616e33..8b9a1e47e 100644 --- a/modules/commands/bs_assign.cpp +++ b/modules/commands/bs_assign.cpp @@ -13,7 +13,7 @@ class CommandBSAssign : public Command { - public: +public: CommandBSAssign(Module *creator) : Command(creator, "botserv/assign", 2, 2) { this->SetDesc(_("Assigns a bot to a channel")); @@ -84,7 +84,7 @@ class CommandBSAssign : public Command class CommandBSUnassign : public Command { - public: +public: CommandBSUnassign(Module *creator) : Command(creator, "botserv/unassign", 1, 1) { this->SetDesc(_("Unassigns a bot from a channel")); @@ -147,7 +147,7 @@ class CommandBSUnassign : public Command class CommandBSSetNoBot : public Command { - public: +public: CommandBSSetNoBot(Module *creator, const Anope::string &sname = "botserv/set/nobot") : Command(creator, sname, 2, 2) { this->SetDesc(_("Prevent a bot from being assigned to a channel")); @@ -210,7 +210,7 @@ class BSAssign : public Module CommandBSUnassign commandbsunassign; CommandBSSetNoBot commandbssetnobot; - public: +public: BSAssign(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), nobot(this, "BS_NOBOT"), commandbsassign(this), commandbsunassign(this), commandbssetnobot(this) diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index 72e8c60f3..0d8f46613 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -152,7 +152,7 @@ class BadwordsDelCallback : public NumberList Command *c; unsigned deleted = 0; bool override = false; - public: +public: BadwordsDelCallback(CommandSource &_source, ChannelInfo *_ci, Command *_c, const Anope::string &list) : NumberList(list, true), source(_source), ci(_ci), c(_c) { if (!source.AccessFor(ci).HasPriv("BADWORDS") && source.HasPriv("botserv/administration")) @@ -183,7 +183,7 @@ class BadwordsDelCallback : public NumberList class CommandBSBadwords : public Command { - private: +private: void DoList(CommandSource &source, ChannelInfo *ci, const Anope::string &word) { bool override = !source.AccessFor(ci).HasPriv("BADWORDS"); @@ -204,7 +204,7 @@ class CommandBSBadwords : public Command { ListFormatter &list; BadWords *bw; - public: + public: BadwordsListCallback(ListFormatter &_list, BadWords *_bw, const Anope::string &numlist) : NumberList(numlist, false), list(_list), bw(_bw) { } @@ -364,7 +364,7 @@ class CommandBSBadwords : public Command source.Reply(_("Bad words list is now empty.")); } - public: +public: CommandBSBadwords(Module *creator) : Command(creator, "botserv/badwords", 2, 3) { this->SetDesc(_("Maintains the bad words list")); @@ -459,7 +459,7 @@ class BSBadwords : public Module ExtensibleItem badwords; Serialize::Type badword_type; - public: +public: BSBadwords(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandbsbadwords(this), badwords(this, "badwords"), badword_type("BadWord", BadWordImpl::Unserialize) { diff --git a/modules/commands/bs_bot.cpp b/modules/commands/bs_bot.cpp index ee44437dd..f7e6b107d 100644 --- a/modules/commands/bs_bot.cpp +++ b/modules/commands/bs_bot.cpp @@ -13,7 +13,7 @@ class CommandBSBot : public Command { - private: +private: void DoAdd(CommandSource &source, const std::vector ¶ms) { const Anope::string &nick = params[1]; @@ -263,7 +263,7 @@ class CommandBSBot : public Command delete bi; return; } - public: +public: CommandBSBot(Module *creator) : Command(creator, "botserv/bot", 1, 6) { this->SetDesc(_("Maintains network bot list")); @@ -374,7 +374,7 @@ class BSBot : public Module { CommandBSBot commandbsbot; - public: +public: BSBot(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandbsbot(this) { diff --git a/modules/commands/bs_botlist.cpp b/modules/commands/bs_botlist.cpp index b124aa2ce..f2dc371d4 100644 --- a/modules/commands/bs_botlist.cpp +++ b/modules/commands/bs_botlist.cpp @@ -13,7 +13,7 @@ class CommandBSBotList : public Command { - public: +public: CommandBSBotList(Module *creator) : Command(creator, "botserv/botlist", 0, 0) { this->SetDesc(_("Lists available bots")); @@ -69,7 +69,7 @@ class BSBotList : public Module { CommandBSBotList commandbsbotlist; - public: +public: BSBotList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandbsbotlist(this) { diff --git a/modules/commands/bs_control.cpp b/modules/commands/bs_control.cpp index 8bb93327b..998415acd 100644 --- a/modules/commands/bs_control.cpp +++ b/modules/commands/bs_control.cpp @@ -13,7 +13,7 @@ class CommandBSSay : public Command { - public: +public: CommandBSSay(Module *creator) : Command(creator, "botserv/say", 2, 2) { this->SetDesc(_("Makes the bot say the specified text on the specified channel")); @@ -73,7 +73,7 @@ class CommandBSSay : public Command class CommandBSAct : public Command { - public: +public: CommandBSAct(Module *creator) : Command(creator, "botserv/act", 2, 2) { this->SetDesc(_("Makes the bot do the equivalent of a \"/me\" command")); @@ -135,7 +135,7 @@ class BSControl : public Module CommandBSSay commandbssay; CommandBSAct commandbsact; - public: +public: BSControl(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandbssay(this), commandbsact(this) { diff --git a/modules/commands/bs_info.cpp b/modules/commands/bs_info.cpp index d9b3afe1d..51da5f173 100644 --- a/modules/commands/bs_info.cpp +++ b/modules/commands/bs_info.cpp @@ -13,7 +13,7 @@ class CommandBSInfo : public Command { - private: +private: void send_bot_channels(std::vector &buffers, const BotInfo *bi) { Anope::string buf; @@ -33,7 +33,7 @@ class CommandBSInfo : public Command buffers.push_back(buf); } - public: +public: CommandBSInfo(Module *creator) : Command(creator, "botserv/info", 1, 1) { this->SetSyntax(_("{\037channel\037 | \037nickname\037}")); @@ -121,7 +121,7 @@ class BSInfo : public Module { CommandBSInfo commandbsinfo; - public: +public: BSInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandbsinfo(this) { diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp index 051400d16..eb890011d 100644 --- a/modules/commands/bs_kick.cpp +++ b/modules/commands/bs_kick.cpp @@ -117,7 +117,7 @@ struct KickerDataImpl : KickerData class CommandBSKick : public Command { - public: +public: CommandBSKick(Module *creator) : Command(creator, "botserv/kick", 0) { this->SetDesc(_("Configures kickers")); @@ -161,7 +161,7 @@ class CommandBSKick : public Command class CommandBSKickBase : public Command { - public: +public: CommandBSKickBase(Module *creator, const Anope::string &cname, int minarg, int maxarg) : Command(creator, cname, minarg, maxarg) { } @@ -170,7 +170,7 @@ class CommandBSKickBase : public Command bool OnHelp(CommandSource &source, const Anope::string &subcommand) override = 0; - protected: +protected: bool CheckArguments(CommandSource &source, const std::vector ¶ms, ChannelInfo* &ci) { const Anope::string &chan = params[0]; @@ -246,7 +246,7 @@ class CommandBSKickBase : public Command class CommandBSKickAMSG : public CommandBSKickBase { - public: +public: CommandBSKickAMSG(Module *creator) : CommandBSKickBase(creator, "botserv/kick/amsg", 2, 3) { this->SetDesc(_("Configures AMSG kicker")); @@ -282,7 +282,7 @@ class CommandBSKickAMSG : public CommandBSKickBase class CommandBSKickBadwords : public CommandBSKickBase { - public: +public: CommandBSKickBadwords(Module *creator) : CommandBSKickBase(creator, "botserv/kick/badwords", 2, 3) { this->SetDesc(_("Configures badwords kicker")); @@ -321,7 +321,7 @@ class CommandBSKickBadwords : public CommandBSKickBase class CommandBSKickBolds : public CommandBSKickBase { - public: +public: CommandBSKickBolds(Module *creator) : CommandBSKickBase(creator, "botserv/kick/bolds", 2, 3) { this->SetDesc(_("Configures bolds kicker")); @@ -355,7 +355,7 @@ class CommandBSKickBolds : public CommandBSKickBase class CommandBSKickCaps : public CommandBSKickBase { - public: +public: CommandBSKickCaps(Module *creator) : CommandBSKickBase(creator, "botserv/kick/caps", 2, 5) { this->SetDesc(_("Configures caps kicker")); @@ -451,7 +451,7 @@ class CommandBSKickCaps : public CommandBSKickBase class CommandBSKickColors : public CommandBSKickBase { - public: +public: CommandBSKickColors(Module *creator) : CommandBSKickBase(creator, "botserv/kick/colors", 2, 3) { this->SetDesc(_("Configures color kicker")); @@ -485,7 +485,7 @@ class CommandBSKickColors : public CommandBSKickBase class CommandBSKickFlood : public CommandBSKickBase { - public: +public: CommandBSKickFlood(Module *creator) : CommandBSKickBase(creator, "botserv/kick/flood", 2, 5) { this->SetDesc(_("Configures flood kicker")); @@ -583,7 +583,7 @@ class CommandBSKickFlood : public CommandBSKickBase class CommandBSKickItalics : public CommandBSKickBase { - public: +public: CommandBSKickItalics(Module *creator) : CommandBSKickBase(creator, "botserv/kick/italics", 2, 3) { this->SetDesc(_("Configures italics kicker")); @@ -617,7 +617,7 @@ class CommandBSKickItalics : public CommandBSKickBase class CommandBSKickRepeat : public CommandBSKickBase { - public: +public: CommandBSKickRepeat(Module *creator) : CommandBSKickBase(creator, "botserv/kick/repeat", 2, 4) { this->SetDesc(_("Configures repeat kicker")); @@ -718,7 +718,7 @@ class CommandBSKickRepeat : public CommandBSKickBase class CommandBSKickReverses : public CommandBSKickBase { - public: +public: CommandBSKickReverses(Module *creator) : CommandBSKickBase(creator, "botserv/kick/reverses", 2, 3) { this->SetDesc(_("Configures reverses kicker")); @@ -752,7 +752,7 @@ class CommandBSKickReverses : public CommandBSKickBase class CommandBSKickUnderlines : public CommandBSKickBase { - public: +public: CommandBSKickUnderlines(Module *creator) : CommandBSKickBase(creator, "botserv/kick/underlines", 2, 3) { this->SetDesc(_("Configures underlines kicker")); @@ -786,7 +786,7 @@ class CommandBSKickUnderlines : public CommandBSKickBase class CommandBSSetDontKickOps : public Command { - public: +public: CommandBSSetDontKickOps(Module *creator, const Anope::string &sname = "botserv/set/dontkickops") : Command(creator, sname, 2, 2) { this->SetDesc(_("To protect ops against bot kicks")); @@ -851,7 +851,7 @@ class CommandBSSetDontKickOps : public Command class CommandBSSetDontKickVoices : public Command { - public: +public: CommandBSSetDontKickVoices(Module *creator, const Anope::string &sname = "botserv/set/dontkickvoices") : Command(creator, sname, 2, 2) { this->SetDesc(_("To protect voices against bot kicks")); @@ -930,11 +930,11 @@ struct BanData } }; - private: +private: typedef Anope::map data_type; data_type data_map; - public: +public: BanData(Extensible *) { } Data &get(const Anope::string &key) @@ -987,7 +987,7 @@ struct UserData class BanDataPurger : public Timer { - public: +public: BanDataPurger(Module *o) : Timer(o, 300, Anope::CurTime, true) { } void Tick(time_t) override @@ -1086,7 +1086,7 @@ class BSKick : public Module ci->c->Kick(ci->bi, u, "%s", buf); } - public: +public: BSKick(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), bandata(this, "bandata"), userdata(this, "userdata"), diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp index 0670b537f..83bd6bc9b 100644 --- a/modules/commands/bs_set.cpp +++ b/modules/commands/bs_set.cpp @@ -13,7 +13,7 @@ class CommandBSSet : public Command { - public: +public: CommandBSSet(Module *creator) : Command(creator, "botserv/set", 3, 3) { this->SetDesc(_("Configures bot options")); @@ -66,13 +66,13 @@ class CommandBSSet : public Command class CommandBSSetBanExpire : public Command { - public: +public: class UnbanTimer : public Timer { Anope::string chname; Anope::string mask; - public: + public: UnbanTimer(Module *creator, const Anope::string &ch, const Anope::string &bmask, time_t t) : Timer(creator, t), chname(ch), mask(bmask) { } void Tick(time_t) override @@ -153,7 +153,7 @@ class CommandBSSetBanExpire : public Command class CommandBSSetPrivate : public Command { - public: +public: CommandBSSetPrivate(Module *creator, const Anope::string &sname = "botserv/set/private") : Command(creator, sname, 2, 2) { this->SetDesc(_("Prevent a bot from being assigned by non IRC operators")); @@ -207,7 +207,7 @@ class BSSet : public Module CommandBSSetBanExpire commandbssetbanexpire; CommandBSSetPrivate commandbssetprivate; - public: +public: BSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandbsset(this), commandbssetbanexpire(this), commandbssetprivate(this) diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index 9c0caa9c7..451df5698 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -22,7 +22,7 @@ static inline void reset_levels(ChannelInfo *ci) class AccessChanAccess : public ChanAccess { - public: +public: int level = 0; AccessChanAccess(AccessProvider *p) : ChanAccess(p) @@ -69,7 +69,7 @@ class AccessChanAccess : public ChanAccess class AccessAccessProvider : public AccessProvider { - public: +public: static AccessAccessProvider *me; AccessAccessProvider(Module *o) : AccessProvider(o, "access/access") @@ -266,7 +266,7 @@ class CommandCSAccess : public Command Anope::string Nicks; bool denied = false; bool override = false; - public: + public: AccessDelCallback(CommandSource &_source, ChannelInfo *_ci, Command *_c, const Anope::string &numlist) : NumberList(numlist, true), source(_source), ci(_ci), c(_c) { if (!source.AccessFor(ci).HasPriv("ACCESS_CHANGE") && source.HasPriv("chanserv/access/modify")) @@ -366,7 +366,7 @@ class CommandCSAccess : public Command ListFormatter &list; ChannelInfo *ci; - public: + public: AccessListCallback(ListFormatter &_list, ChannelInfo *_ci, const Anope::string &numlist) : NumberList(numlist, false), list(_list), ci(_ci) { } @@ -510,7 +510,7 @@ class CommandCSAccess : public Command return; } - public: +public: CommandCSAccess(Module *creator) : Command(creator, "chanserv/access", 2, 5) { this->SetDesc(_("Modify the list of privileged users")); @@ -752,7 +752,7 @@ class CommandCSLevels : public Command return; } - public: +public: CommandCSLevels(Module *creator) : Command(creator, "chanserv/levels", 2, 4) { this->SetDesc(_("Redefine the meanings of access levels")); @@ -863,7 +863,7 @@ class CSAccess : public Module CommandCSAccess commandcsaccess; CommandCSLevels commandcslevels; - public: +public: CSAccess(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), accessprovider(this), commandcsaccess(this), commandcslevels(this) { diff --git a/modules/commands/cs_akick.cpp b/modules/commands/cs_akick.cpp index 78215dacd..fc572344c 100644 --- a/modules/commands/cs_akick.cpp +++ b/modules/commands/cs_akick.cpp @@ -210,7 +210,7 @@ class CommandCSAKick : public Command Command *c; unsigned deleted = 0; AccessGroup ag; - public: + public: AkickDelCallback(CommandSource &_source, ChannelInfo *_ci, Command *_c, const Anope::string &list) : NumberList(list, true), source(_source), ci(_ci), c(_c), ag(source.AccessFor(ci)) { } @@ -285,7 +285,7 @@ class CommandCSAKick : public Command ListFormatter &list; ChannelInfo *ci; - public: + public: AkickListCallback(ListFormatter &_list, ChannelInfo *_ci, const Anope::string &numlist) : NumberList(numlist, false), list(_list), ci(_ci) { } @@ -425,7 +425,7 @@ class CommandCSAKick : public Command source.Reply(_("Channel %s akick list has been cleared."), ci->name.c_str()); } - public: +public: CommandCSAKick(Module *creator) : Command(creator, "chanserv/akick", 2, 4) { this->SetDesc(_("Maintain the AutoKick list")); @@ -529,7 +529,7 @@ class CSAKick : public Module { CommandCSAKick commandcsakick; - public: +public: CSAKick(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsakick(this) { diff --git a/modules/commands/cs_ban.cpp b/modules/commands/cs_ban.cpp index 51e124948..eae94110e 100644 --- a/modules/commands/cs_ban.cpp +++ b/modules/commands/cs_ban.cpp @@ -15,12 +15,12 @@ static Module *me; class TempBan : public Timer { - private: +private: Anope::string channel; Anope::string mask; Anope::string mode; - public: +public: TempBan(time_t seconds, Channel *c, const Anope::string &banmask, const Anope::string &mod) : Timer(me, seconds), channel(c->name), mask(banmask), mode(mod) { } void Tick(time_t ctime) override @@ -33,7 +33,7 @@ class TempBan : public Timer class CommandCSBan : public Command { - public: +public: CommandCSBan(Module *creator) : Command(creator, "chanserv/ban", 2, 4) { this->SetDesc(_("Bans a given nick or mask on a channel")); @@ -241,7 +241,7 @@ class CSBan : public Module { CommandCSBan commandcsban; - public: +public: CSBan(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsban(this) { me = this; diff --git a/modules/commands/cs_clone.cpp b/modules/commands/cs_clone.cpp index c287f6a0b..200de399e 100644 --- a/modules/commands/cs_clone.cpp +++ b/modules/commands/cs_clone.cpp @@ -250,7 +250,7 @@ class CSClone : public Module { CommandCSClone commandcsclone; - public: +public: CSClone(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsclone(this) { diff --git a/modules/commands/cs_drop.cpp b/modules/commands/cs_drop.cpp index 86fd3256a..2a4ac9c9b 100644 --- a/modules/commands/cs_drop.cpp +++ b/modules/commands/cs_drop.cpp @@ -13,7 +13,7 @@ class CommandCSDrop : public Command { - public: +public: CommandCSDrop(Module *creator) : Command(creator, "chanserv/drop", 1, 2) { this->SetDesc(_("Cancel the registration of a channel")); @@ -85,7 +85,7 @@ class CSDrop : public Module { CommandCSDrop commandcsdrop; - public: +public: CSDrop(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsdrop(this) { diff --git a/modules/commands/cs_enforce.cpp b/modules/commands/cs_enforce.cpp index eca2d0651..3e42c4166 100644 --- a/modules/commands/cs_enforce.cpp +++ b/modules/commands/cs_enforce.cpp @@ -15,7 +15,7 @@ class CommandCSEnforce : public Command { - private: +private: void DoSecureOps(CommandSource &source, ChannelInfo *ci) { bool override = !source.AccessFor(ci).HasPriv("AKICK") && source.HasPriv("chanserv/access/modify"); @@ -206,7 +206,7 @@ class CommandCSEnforce : public Command source.Reply(_("LIMIT enforced on %s, %d users removed."), ci->name.c_str(), users.size()); } - public: +public: CommandCSEnforce(Module *creator) : Command(creator, "chanserv/enforce", 2, 2) { this->SetDesc(_("Enforce various channel modes and set options")); @@ -266,7 +266,7 @@ class CSEnforce : public Module { CommandCSEnforce commandcsenforce; - public: +public: CSEnforce(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsenforce(this) { diff --git a/modules/commands/cs_entrymsg.cpp b/modules/commands/cs_entrymsg.cpp index 0b6fdcbfe..f68ef3bde 100644 --- a/modules/commands/cs_entrymsg.cpp +++ b/modules/commands/cs_entrymsg.cpp @@ -99,7 +99,7 @@ Serializable* EntryMsgImpl::Unserialize(Serializable *obj, Serialize::Data &data class CommandEntryMessage : public Command { - private: +private: void DoList(CommandSource &source, ChannelInfo *ci) { EntryMessageList *messages = ci->Require("entrymsg"); @@ -187,7 +187,7 @@ class CommandEntryMessage : public Command source.Reply(_("Entry messages for \002%s\002 have been cleared."), ci->name.c_str()); } - public: +public: CommandEntryMessage(Module *creator) : Command(creator, "chanserv/entrymsg", 2, 3) { this->SetDesc(_("Manage the channel's entry messages")); @@ -266,7 +266,7 @@ class CSEntryMessage : public Module ExtensibleItem eml; Serialize::Type entrymsg_type; - public: +public: CSEntryMessage(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandentrymsg(this), eml(this, "entrymsg"), entrymsg_type("EntryMsg", EntryMsgImpl::Unserialize) diff --git a/modules/commands/cs_flags.cpp b/modules/commands/cs_flags.cpp index e1ea5ba00..f2f701125 100644 --- a/modules/commands/cs_flags.cpp +++ b/modules/commands/cs_flags.cpp @@ -15,7 +15,7 @@ static std::map defaultFlags; class FlagsChanAccess : public ChanAccess { - public: +public: std::set flags; FlagsChanAccess(AccessProvider *p) : ChanAccess(p) @@ -61,7 +61,7 @@ class FlagsChanAccess : public ChanAccess class FlagsAccessProvider : public AccessProvider { - public: +public: static FlagsAccessProvider *ap; FlagsAccessProvider(Module *o) : AccessProvider(o, "access/flags") @@ -375,7 +375,7 @@ class CommandCSFlags : public Command return; } - public: +public: CommandCSFlags(Module *creator) : Command(creator, "chanserv/flags", 1, 5) { this->SetDesc(_("Modify the list of privileged users")); @@ -480,7 +480,7 @@ class CSFlags : public Module FlagsAccessProvider accessprovider; CommandCSFlags commandcsflags; - public: +public: CSFlags(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), accessprovider(this), commandcsflags(this) { diff --git a/modules/commands/cs_getkey.cpp b/modules/commands/cs_getkey.cpp index c184ecac2..659f3df05 100644 --- a/modules/commands/cs_getkey.cpp +++ b/modules/commands/cs_getkey.cpp @@ -13,7 +13,7 @@ class CommandCSGetKey : public Command { - public: +public: CommandCSGetKey(Module *creator) : Command(creator, "chanserv/getkey", 1, 1) { this->SetDesc(_("Returns the key of the given channel")); @@ -63,7 +63,7 @@ class CSGetKey : public Module { CommandCSGetKey commandcsgetkey; - public: +public: CSGetKey(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsgetkey(this) { diff --git a/modules/commands/cs_info.cpp b/modules/commands/cs_info.cpp index d47f9f8c1..4b6dc453a 100644 --- a/modules/commands/cs_info.cpp +++ b/modules/commands/cs_info.cpp @@ -13,7 +13,7 @@ class CommandCSInfo : public Command { - public: +public: CommandCSInfo(Module *creator) : Command(creator, "chanserv/info", 1, 2) { this->SetDesc(_("Lists information about the specified registered channel")); @@ -87,7 +87,7 @@ class CSInfo : public Module { CommandCSInfo commandcsinfo; - public: +public: CSInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsinfo(this) { diff --git a/modules/commands/cs_invite.cpp b/modules/commands/cs_invite.cpp index 91c98673f..6e3a71c6c 100644 --- a/modules/commands/cs_invite.cpp +++ b/modules/commands/cs_invite.cpp @@ -13,7 +13,7 @@ class CommandCSInvite : public Command { - public: +public: CommandCSInvite(Module *creator) : Command(creator, "chanserv/invite", 1, 3) { this->SetDesc(_("Invites you or an optionally specified nick into a channel")); @@ -101,7 +101,7 @@ class CSInvite : public Module { CommandCSInvite commandcsinvite; - public: +public: CSInvite(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsinvite(this) { diff --git a/modules/commands/cs_kick.cpp b/modules/commands/cs_kick.cpp index 5d2bce871..b1ad5ed5c 100644 --- a/modules/commands/cs_kick.cpp +++ b/modules/commands/cs_kick.cpp @@ -13,7 +13,7 @@ class CommandCSKick : public Command { - public: +public: CommandCSKick(Module *creator) : Command(creator, "chanserv/kick", 2, 3) { this->SetDesc(_("Kicks a specified nick from a channel")); @@ -137,7 +137,7 @@ class CSKick : public Module { CommandCSKick commandcskick; - public: +public: CSKick(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcskick(this) { diff --git a/modules/commands/cs_list.cpp b/modules/commands/cs_list.cpp index 8323b6adb..f484ab088 100644 --- a/modules/commands/cs_list.cpp +++ b/modules/commands/cs_list.cpp @@ -14,7 +14,7 @@ class CommandCSList : public Command { - public: +public: CommandCSList(Module *creator) : Command(creator, "chanserv/list", 1, 2) { this->SetDesc(_("Lists all registered channels matching the given pattern")); @@ -172,7 +172,7 @@ class CommandCSList : public Command class CommandCSSetPrivate : public Command { - public: +public: CommandCSSetPrivate(Module *creator, const Anope::string &cname = "chanserv/set/private") : Command(creator, cname, 2, 2) { this->SetDesc(_("Hide channel from the LIST command")); @@ -245,7 +245,7 @@ class CSList : public Module SerializableExtensibleItem priv; - public: +public: CSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcslist(this), commandcssetprivate(this), priv(this, "CS_PRIVATE") { diff --git a/modules/commands/cs_log.cpp b/modules/commands/cs_log.cpp index 2a6f2d0ec..4f792d63e 100644 --- a/modules/commands/cs_log.cpp +++ b/modules/commands/cs_log.cpp @@ -295,7 +295,7 @@ class CSLog : public Module std::vector defaults; - public: +public: CSLog(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), MSService("MemoServService", "MemoServ"), commandcslog(this), logsettings(this, "logsettings"), logsetting_type("LogSetting", LogSettingImpl::Unserialize) diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 69e2247ba..605886de9 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -717,7 +717,7 @@ class CommandCSMode : public Command this->DoSet(source, ci, new_params); } - public: +public: CommandCSMode(Module *creator) : Command(creator, "chanserv/mode", 2, 4) { this->SetDesc(_("Control modes and mode locks on a channel")); @@ -791,7 +791,7 @@ static Anope::map > modes; class CommandCSModes : public Command { - public: +public: CommandCSModes(Module *creator) : Command(creator, "chanserv/modes", 1, 2) { this->SetSyntax(_("\037channel\037 [\037user\037]")); @@ -913,7 +913,7 @@ class CSMode : public Module ExtensibleItem modelocks; Serialize::Type modelocks_type; - public: +public: CSMode(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsmode(this), commandcsmodes(this), modelocks(this, "modelocks"), diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp index 76066349e..03d37232f 100644 --- a/modules/commands/cs_register.cpp +++ b/modules/commands/cs_register.cpp @@ -13,7 +13,7 @@ class CommandCSRegister : public Command { - public: +public: CommandCSRegister(Module *creator) : Command(creator, "chanserv/register", 1, 2) { this->SetDesc(_("Register a channel")); @@ -114,7 +114,7 @@ class CSRegister : public Module { CommandCSRegister commandcsregister; - public: +public: CSRegister(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsregister(this) { diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp index 6bdb85bbf..8cf311e90 100644 --- a/modules/commands/cs_seen.cpp +++ b/modules/commands/cs_seen.cpp @@ -111,7 +111,7 @@ static bool ShouldHide(const Anope::string &channel, User *u) class CommandOSSeen : public Command { - public: +public: CommandOSSeen(Module *creator) : Command(creator, "operserv/seen", 1, 2) { this->SetDesc(_("Statistics and maintenance for seen data")); @@ -252,7 +252,7 @@ class CommandSeen : public Command source.Reply(_("%s was last seen here %s ago."), na->nick.c_str(), Anope::Duration(Anope::CurTime - last, source.GetAccount()).c_str()); } - public: +public: CommandSeen(Module *creator) : Command(creator, "chanserv/seen", 1, 2) { this->SetDesc(_("Tells you about the last time a user was seen")); @@ -373,7 +373,7 @@ class CSSeen : public Module Serialize::Type seeninfo_type; CommandSeen commandseen; CommandOSSeen commandosseen; - public: +public: CSSeen(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), seeninfo_type("SeenInfo", SeenInfo::Unserialize), commandseen(this), commandosseen(this) { } @@ -435,7 +435,7 @@ class CSSeen : public Module UpdateUser(cu->user, KICK, cu->user->nick, source.GetSource(), cu->chan->name, msg); } - private: +private: void UpdateUser(const User *u, const TypeInfo Type, const Anope::string &nick, const Anope::string &nick2, const Anope::string &channel, const Anope::string &message) { if (simple || !u->server->IsSynced()) diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp index 0456f56b8..fe86b9bc2 100644 --- a/modules/commands/cs_set.cpp +++ b/modules/commands/cs_set.cpp @@ -14,7 +14,7 @@ class CommandCSSet : public Command { - public: +public: CommandCSSet(Module *creator) : Command(creator, "chanserv/set", 2, 3) { this->SetDesc(_("Set channel options and information")); @@ -66,7 +66,7 @@ class CommandCSSet : public Command class CommandCSSetAutoOp : public Command { - public: +public: CommandCSSetAutoOp(Module *creator, const Anope::string &cname = "chanserv/set/autoop") : Command(creator, cname, 2, 2) { this->SetDesc(_("Should services automatically give status to users")); @@ -129,7 +129,7 @@ class CommandCSSetAutoOp : public Command class CommandCSSetBanType : public Command { - public: +public: CommandCSSetBanType(Module *creator, const Anope::string &cname = "chanserv/set/bantype") : Command(creator, cname, 2, 2) { this->SetDesc(_("Set how services make bans on the channel")); @@ -196,7 +196,7 @@ class CommandCSSetBanType : public Command class CommandCSSetDescription : public Command { - public: +public: CommandCSSetDescription(Module *creator, const Anope::string &cname = "chanserv/set/description") : Command(creator, cname, 1, 2) { this->SetDesc(_("Set the channel description")); @@ -258,7 +258,7 @@ class CommandCSSetDescription : public Command class CommandCSSetFounder : public Command { - public: +public: CommandCSSetFounder(Module *creator, const Anope::string &cname = "chanserv/set/founder") : Command(creator, cname, 2, 2) { this->SetDesc(_("Set the founder of a channel")); @@ -327,7 +327,7 @@ class CommandCSSetFounder : public Command class CommandCSSetKeepModes : public Command { - public: +public: CommandCSSetKeepModes(Module *creator, const Anope::string &cname = "chanserv/set/keepmodes") : Command(creator, cname, 2, 2) { this->SetDesc(_("Retain modes when channel is not in use")); @@ -392,7 +392,7 @@ class CommandCSSetKeepModes : public Command class CommandCSSetPeace : public Command { - public: +public: CommandCSSetPeace(Module *creator, const Anope::string &cname = "chanserv/set/peace") : Command(creator, cname, 2, 2) { this->SetDesc(_("Regulate the use of critical commands")); @@ -464,7 +464,7 @@ inline static Anope::string BotModes() class CommandCSSetPersist : public Command { - public: +public: CommandCSSetPersist(Module *creator, const Anope::string &cname = "chanserv/set/persist") : Command(creator, cname, 2, 2) { this->SetDesc(_("Set the channel as permanent")); @@ -613,7 +613,7 @@ class CommandCSSetPersist : public Command class CommandCSSetRestricted : public Command { - public: +public: CommandCSSetRestricted(Module *creator, const Anope::string &cname = "chanserv/set/restricted") : Command(creator, cname, 2, 2) { this->SetDesc(_("Restrict access to the channel")); @@ -675,7 +675,7 @@ class CommandCSSetRestricted : public Command class CommandCSSetSecure : public Command { - public: +public: CommandCSSetSecure(Module *creator, const Anope::string &cname = "chanserv/set/secure") : Command(creator, cname, 2, 2) { this->SetDesc(_("Activate security features")); @@ -738,7 +738,7 @@ class CommandCSSetSecure : public Command class CommandCSSetSecureFounder : public Command { - public: +public: CommandCSSetSecureFounder(Module *creator, const Anope::string &cname = "chanserv/set/securefounder") : Command(creator, cname, 2, 2) { this->SetDesc(_("Stricter control of channel founder status")); @@ -802,7 +802,7 @@ class CommandCSSetSecureFounder : public Command class CommandCSSetSecureOps : public Command { - public: +public: CommandCSSetSecureOps(Module *creator, const Anope::string &cname = "chanserv/set/secureops") : Command(creator, cname, 2, 2) { this->SetDesc(_("Stricter control of chanop status")); @@ -864,7 +864,7 @@ class CommandCSSetSecureOps : public Command class CommandCSSetSignKick : public Command { - public: +public: CommandCSSetSignKick(Module *creator, const Anope::string &cname = "chanserv/set/signkick") : Command(creator, cname, 2, 2) { this->SetDesc(_("Sign kicks that are done with the KICK command")); @@ -941,7 +941,7 @@ class CommandCSSetSignKick : public Command class CommandCSSetSuccessor : public Command { - public: +public: CommandCSSetSuccessor(Module *creator, const Anope::string &cname = "chanserv/set/successor") : Command(creator, cname, 1, 2) { this->SetDesc(_("Set the successor for a channel")); @@ -1035,7 +1035,7 @@ class CommandCSSetSuccessor : public Command class CommandCSSetNoexpire : public Command { - public: +public: CommandCSSetNoexpire(Module *creator) : Command(creator, "chanserv/saset/noexpire", 2, 2) { this->SetDesc(_("Prevent the channel from expiring")); @@ -1163,7 +1163,7 @@ class CSSet : public Module bool persist_lower_ts; - public: +public: CSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), noautoop(this, "NOAUTOOP"), peace(this, "PEACE"), securefounder(this, "SECUREFOUNDER"), restricted(this, "RESTRICTED"), diff --git a/modules/commands/cs_set_misc.cpp b/modules/commands/cs_set_misc.cpp index 86233c97a..e7b5c496e 100644 --- a/modules/commands/cs_set_misc.cpp +++ b/modules/commands/cs_set_misc.cpp @@ -90,7 +90,7 @@ static Anope::string GetAttribute(const Anope::string &command) class CommandCSSetMisc : public Command { - public: +public: CommandCSSetMisc(Module *creator, const Anope::string &cname = "chanserv/set/misc") : Command(creator, cname, 1, 2) { this->SetSyntax(_("\037channel\037 [\037parameters\037]")); @@ -169,7 +169,7 @@ class CSSetMisc : public Module CommandCSSetMisc commandcssetmisc; Serialize::Type csmiscdata_type; - public: +public: CSSetMisc(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcssetmisc(this), csmiscdata_type("CSMiscData", CSMiscData::Unserialize) { diff --git a/modules/commands/cs_status.cpp b/modules/commands/cs_status.cpp index 9d5f856f8..7135fcbba 100644 --- a/modules/commands/cs_status.cpp +++ b/modules/commands/cs_status.cpp @@ -114,7 +114,7 @@ class CSStatus : public Module { CommandCSStatus commandcsstatus; - public: +public: CSStatus(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsstatus(this) { } diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp index cae0bbdb9..cce4dcf66 100644 --- a/modules/commands/cs_suspend.cpp +++ b/modules/commands/cs_suspend.cpp @@ -52,7 +52,7 @@ struct CSSuspendInfo : SuspendInfo, Serializable class CommandCSSuspend : public Command { - public: +public: CommandCSSuspend(Module *creator) : Command(creator, "chanserv/suspend", 2, 3) { this->SetDesc(_("Prevent a channel from being used preserving channel data and settings")); @@ -144,7 +144,7 @@ class CommandCSSuspend : public Command class CommandCSUnSuspend : public Command { - public: +public: CommandCSUnSuspend(Module *creator) : Command(creator, "chanserv/unsuspend", 1, 1) { this->SetDesc(_("Releases a suspended channel")); @@ -214,7 +214,7 @@ class CSSuspend : public Module return source.IsOper() || std::find(show.begin(), show.end(), what) != show.end(); } - public: +public: CSSuspend(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcssuspend(this), commandcsunsuspend(this), suspend(this, "CS_SUSPENDED"), suspend_type("CSSuspendInfo", CSSuspendInfo::Unserialize) diff --git a/modules/commands/cs_sync.cpp b/modules/commands/cs_sync.cpp index 2610f521c..66d098542 100644 --- a/modules/commands/cs_sync.cpp +++ b/modules/commands/cs_sync.cpp @@ -13,7 +13,7 @@ class CommandCSSync : public Command { - public: +public: CommandCSSync(Module *creator) : Command(creator, "chanserv/sync", 1, 1) { this->SetDesc(_("Sync users channel modes")); @@ -55,7 +55,7 @@ class CommandCSSync : public Command class CSSync : public Module { CommandCSSync commandcssync; - public: +public: CSSync(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcssync(this) { diff --git a/modules/commands/cs_topic.cpp b/modules/commands/cs_topic.cpp index 7e71020a1..2601e771d 100644 --- a/modules/commands/cs_topic.cpp +++ b/modules/commands/cs_topic.cpp @@ -14,7 +14,7 @@ class CommandCSSetKeepTopic : public Command { - public: +public: CommandCSSetKeepTopic(Module *creator, const Anope::string &cname = "chanserv/set/keeptopic") : Command(creator, cname, 2, 2) { this->SetDesc(_("Retain topic when channel is not in use")); @@ -142,7 +142,7 @@ class CommandCSTopic : public Command this->Set(source, ci, new_topic); } - public: +public: CommandCSTopic(Module *creator) : Command(creator, "chanserv/topic", 2, 3), topiclock("TOPICLOCK") { @@ -209,7 +209,7 @@ class CSTopic : public Module SerializableExtensibleItem topiclock, keeptopic; - public: +public: CSTopic(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcstopic(this), commandcssetkeeptopic(this), topiclock(this, "TOPICLOCK"), keeptopic(this, "KEEPTOPIC") { diff --git a/modules/commands/cs_unban.cpp b/modules/commands/cs_unban.cpp index 832c1cfcb..90c070d65 100644 --- a/modules/commands/cs_unban.cpp +++ b/modules/commands/cs_unban.cpp @@ -13,7 +13,7 @@ class CommandCSUnban : public Command { - public: +public: CommandCSUnban(Module *creator) : Command(creator, "chanserv/unban", 0, 2) { this->SetDesc(_("Remove all bans preventing a user from entering a channel")); @@ -119,7 +119,7 @@ class CSUnban : public Module { CommandCSUnban commandcsunban; - public: +public: CSUnban(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsunban(this) { diff --git a/modules/commands/cs_updown.cpp b/modules/commands/cs_updown.cpp index 59bd19660..1299f59bd 100644 --- a/modules/commands/cs_updown.cpp +++ b/modules/commands/cs_updown.cpp @@ -41,7 +41,7 @@ class CommandCSUp : public Command } } } - public: +public: CommandCSUp(Module *creator) : Command(creator, "chanserv/up", 0, 2) { this->SetDesc(_("Updates a selected nicks status on a channel")); @@ -139,7 +139,7 @@ class CommandCSDown : public Command c->RemoveMode(NULL, ModeManager::FindChannelModeByChar(cu->status.Modes()[--i]), u->GetUID()); } - public: +public: CommandCSDown(Module *creator) : Command(creator, "chanserv/down", 0, 2) { this->SetDesc(_("Removes a selected nicks status from a channel")); @@ -231,7 +231,7 @@ class CSUpDown : public Module CommandCSUp commandcsup; CommandCSDown commandcsdown; - public: +public: CSUpDown(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandcsup(this), commandcsdown(this) { diff --git a/modules/commands/cs_xop.cpp b/modules/commands/cs_xop.cpp index 051af5470..54c079001 100644 --- a/modules/commands/cs_xop.cpp +++ b/modules/commands/cs_xop.cpp @@ -19,7 +19,7 @@ namespace class XOPChanAccess : public ChanAccess { - public: +public: Anope::string type; XOPChanAccess(AccessProvider *p) : ChanAccess(p) @@ -86,7 +86,7 @@ class XOPChanAccess : public ChanAccess class XOPAccessProvider : public AccessProvider { - public: +public: XOPAccessProvider(Module *o) : AccessProvider(o, "access/xop") { } @@ -99,7 +99,7 @@ class XOPAccessProvider : public AccessProvider class CommandCSXOP : public Command { - private: +private: void DoAdd(CommandSource &source, ChannelInfo *ci, const std::vector ¶ms) { Anope::string mask = params.size() > 2 ? params[2] : ""; @@ -299,7 +299,7 @@ class CommandCSXOP : public Command unsigned deleted = 0; Anope::string nicks; bool override; - public: + public: XOPDelCallback(CommandSource &_source, ChannelInfo *_ci, Command *_c, bool _override, const Anope::string &numlist) : NumberList(numlist, true), source(_source), ci(_ci), c(_c), override(_override) { } @@ -399,7 +399,7 @@ class CommandCSXOP : public Command ListFormatter &list; ChannelInfo *ci; CommandSource &source; - public: + public: XOPListCallback(ListFormatter &_list, ChannelInfo *_ci, const Anope::string &numlist, CommandSource &src) : NumberList(numlist, false), list(_list), ci(_ci), source(src) { } @@ -493,7 +493,7 @@ class CommandCSXOP : public Command source.Reply(_("Channel %s %s list has been cleared."), ci->name.c_str(), source.command.c_str()); } - public: +public: CommandCSXOP(Module *modname) : Command(modname, "chanserv/xop", 2, 4) { this->SetSyntax(_("\037channel\037 ADD \037mask\037 [\037description\037]")); @@ -600,7 +600,7 @@ class CSXOP : public Module XOPAccessProvider accessprovider; CommandCSXOP commandcsxop; - public: +public: CSXOP(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), accessprovider(this), commandcsxop(this) { diff --git a/modules/commands/gl_global.cpp b/modules/commands/gl_global.cpp index 072b786dc..178d87eb1 100644 --- a/modules/commands/gl_global.cpp +++ b/modules/commands/gl_global.cpp @@ -15,7 +15,7 @@ class CommandGLGlobal : public Command { ServiceReference GService; - public: +public: CommandGLGlobal(Module *creator) : Command(creator, "global/global", 1, 1), GService("GlobalService", "Global") { this->SetDesc(_("Send a message to all users")); @@ -55,7 +55,7 @@ class GLGlobal : public Module { CommandGLGlobal commandglglobal; - public: +public: GLGlobal(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandglglobal(this) { diff --git a/modules/commands/greet.cpp b/modules/commands/greet.cpp index 0ebad1864..3cfe11262 100644 --- a/modules/commands/greet.cpp +++ b/modules/commands/greet.cpp @@ -13,7 +13,7 @@ class CommandBSSetGreet : public Command { - public: +public: CommandBSSetGreet(Module *creator, const Anope::string &sname = "botserv/set/greet") : Command(creator, sname, 2, 2) { this->SetDesc(_("Enable greet messages")); @@ -77,7 +77,7 @@ class CommandBSSetGreet : public Command class CommandNSSetGreet : public Command { - public: +public: CommandNSSetGreet(Module *creator, const Anope::string &sname = "nickserv/set/greet", size_t min = 0) : Command(creator, sname, min, min + 1) { this->SetDesc(_("Associate a greet message with your nickname")); @@ -138,7 +138,7 @@ class CommandNSSetGreet : public Command class CommandNSSASetGreet : public CommandNSSetGreet { - public: +public: CommandNSSASetGreet(Module *creator) : CommandNSSetGreet(creator, "nickserv/saset/greet", 1) { this->ClearSyntax(); @@ -173,7 +173,7 @@ class Greet : public Module CommandNSSetGreet commandnssetgreet; CommandNSSASetGreet commandnssasetgreet; - public: +public: Greet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), bs_greet(this, "BS_GREET"), ns_greet(this, "greet"), diff --git a/modules/commands/help.cpp b/modules/commands/help.cpp index 071161fcd..3f1ac5a42 100644 --- a/modules/commands/help.cpp +++ b/modules/commands/help.cpp @@ -26,7 +26,7 @@ class CommandHelp : public Command return NULL; } - public: +public: CommandHelp(Module *creator) : Command(creator, "generic/help", 0) { this->SetDesc(_("Displays this list and give information about commands")); @@ -186,7 +186,7 @@ class Help : public Module { CommandHelp commandhelp; - public: +public: Help(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhelp(this) { diff --git a/modules/commands/hs_del.cpp b/modules/commands/hs_del.cpp index 9d4514907..d2b43433c 100644 --- a/modules/commands/hs_del.cpp +++ b/modules/commands/hs_del.cpp @@ -13,7 +13,7 @@ class CommandHSDel : public Command { - public: +public: CommandHSDel(Module *creator) : Command(creator, "hostserv/del", 1, 1) { this->SetDesc(_("Delete the vhost of another user")); @@ -53,7 +53,7 @@ class CommandHSDel : public Command class CommandHSDelAll : public Command { - public: +public: CommandHSDelAll(Module *creator) : Command(creator, "hostserv/delall", 1, 1) { this->SetDesc(_("Deletes the vhost for all nicks in a group")); @@ -101,7 +101,7 @@ class HSDel : public Module CommandHSDel commandhsdel; CommandHSDelAll commandhsdelall; - public: +public: HSDel(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhsdel(this), commandhsdelall(this) { diff --git a/modules/commands/hs_group.cpp b/modules/commands/hs_group.cpp index 03e1dc333..a492e50c5 100644 --- a/modules/commands/hs_group.cpp +++ b/modules/commands/hs_group.cpp @@ -15,7 +15,7 @@ class CommandHSGroup : public Command { bool setting = false; - public: +public: void Sync(const NickAlias *na) { if (setting) @@ -81,7 +81,7 @@ class HSGroup : public Module bool syncongroup; bool synconset; - public: +public: HSGroup(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhsgroup(this) { diff --git a/modules/commands/hs_list.cpp b/modules/commands/hs_list.cpp index 00f2915d1..cb1dc4d17 100644 --- a/modules/commands/hs_list.cpp +++ b/modules/commands/hs_list.cpp @@ -13,7 +13,7 @@ class CommandHSList : public Command { - public: +public: CommandHSList(Module *creator) : Command(creator, "hostserv/list", 0, 1) { this->SetDesc(_("Displays one or more vhost entries")); @@ -146,7 +146,7 @@ class HSList : public Module { CommandHSList commandhslist; - public: +public: HSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhslist(this) { diff --git a/modules/commands/hs_off.cpp b/modules/commands/hs_off.cpp index e2325bb45..67d0520fb 100644 --- a/modules/commands/hs_off.cpp +++ b/modules/commands/hs_off.cpp @@ -13,7 +13,7 @@ class CommandHSOff : public Command { - public: +public: CommandHSOff(Module *creator) : Command(creator, "hostserv/off", 0, 0) { this->SetDesc(_("Deactivates your assigned vhost")); @@ -57,7 +57,7 @@ class HSOff : public Module { CommandHSOff commandhsoff; - public: +public: HSOff(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhsoff(this) { diff --git a/modules/commands/hs_on.cpp b/modules/commands/hs_on.cpp index a3feffbaf..a7f67de2f 100644 --- a/modules/commands/hs_on.cpp +++ b/modules/commands/hs_on.cpp @@ -13,7 +13,7 @@ class CommandHSOn : public Command { - public: +public: CommandHSOn(Module *creator) : Command(creator, "hostserv/on", 0, 0) { this->SetDesc(_("Activates your assigned vhost")); @@ -63,7 +63,7 @@ class HSOn : public Module { CommandHSOn commandhson; - public: +public: HSOn(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhson(this) { diff --git a/modules/commands/hs_request.cpp b/modules/commands/hs_request.cpp index c626deca2..74c869b86 100644 --- a/modules/commands/hs_request.cpp +++ b/modules/commands/hs_request.cpp @@ -72,7 +72,7 @@ class CommandHSRequest : public Command return false; } - public: +public: CommandHSRequest(Module *creator) : Command(creator, "hostserv/request", 1, 1) { this->SetDesc(_("Request a vHost for your nick")); @@ -187,7 +187,7 @@ class CommandHSRequest : public Command class CommandHSActivate : public Command { - public: +public: CommandHSActivate(Module *creator) : Command(creator, "hostserv/activate", 1, 1) { this->SetDesc(_("Approve the requested vHost of a user")); @@ -236,7 +236,7 @@ class CommandHSActivate : public Command class CommandHSReject : public Command { - public: +public: CommandHSReject(Module *creator) : Command(creator, "hostserv/reject", 1, 2) { this->SetDesc(_("Reject the requested vHost of a user")); @@ -292,7 +292,7 @@ class CommandHSReject : public Command class CommandHSWaiting : public Command { - public: +public: CommandHSWaiting(Module *creator) : Command(creator, "hostserv/waiting", 0, 0) { this->SetDesc(_("Retrieves the vhost requests")); @@ -357,7 +357,7 @@ class HSRequest : public Module ExtensibleItem hostrequest; Serialize::Type request_type; - public: +public: HSRequest(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhsrequest(this), commandhsactive(this), commandhsreject(this), commandhswaiting(this), hostrequest(this, "hostrequest"), request_type("HostRequest", HostRequest::Unserialize) diff --git a/modules/commands/hs_set.cpp b/modules/commands/hs_set.cpp index 926dc3bfe..f9e2ed49e 100644 --- a/modules/commands/hs_set.cpp +++ b/modules/commands/hs_set.cpp @@ -13,7 +13,7 @@ class CommandHSSet : public Command { - public: +public: CommandHSSet(Module *creator) : Command(creator, "hostserv/set", 2, 2) { this->SetDesc(_("Set the vhost of another user")); @@ -118,7 +118,7 @@ class CommandHSSetAll : public Command } } - public: +public: CommandHSSetAll(Module *creator) : Command(creator, "hostserv/setall", 2, 2) { this->SetDesc(_("Set the vhost for all nicks in a group")); @@ -217,7 +217,7 @@ class HSSet : public Module CommandHSSet commandhsset; CommandHSSetAll commandhssetall; - public: +public: HSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandhsset(this), commandhssetall(this) { if (!IRCD || !IRCD->CanSetVHost) diff --git a/modules/commands/ms_cancel.cpp b/modules/commands/ms_cancel.cpp index d9f10b104..3d7c5b3bf 100644 --- a/modules/commands/ms_cancel.cpp +++ b/modules/commands/ms_cancel.cpp @@ -13,7 +13,7 @@ class CommandMSCancel : public Command { - public: +public: CommandMSCancel(Module *creator) : Command(creator, "memoserv/cancel", 1, 1) { this->SetDesc(_("Cancel the last memo you sent")); @@ -91,7 +91,7 @@ class MSCancel : public Module { CommandMSCancel commandmscancel; - public: +public: MSCancel(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandmscancel(this) { diff --git a/modules/commands/ms_check.cpp b/modules/commands/ms_check.cpp index a0b50eeb9..61fb809a7 100644 --- a/modules/commands/ms_check.cpp +++ b/modules/commands/ms_check.cpp @@ -13,7 +13,7 @@ class CommandMSCheck : public Command { - public: +public: CommandMSCheck(Module *creator) : Command(creator, "memoserv/check", 1, 1) { this->SetDesc(_("Checks if last memo to a nick was read")); @@ -76,7 +76,7 @@ class MSCheck : public Module { CommandMSCheck commandmscheck; - public: +public: MSCheck(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandmscheck(this) { diff --git a/modules/commands/ms_del.cpp b/modules/commands/ms_del.cpp index eefd7add7..795b2992c 100644 --- a/modules/commands/ms_del.cpp +++ b/modules/commands/ms_del.cpp @@ -17,7 +17,7 @@ class MemoDelCallback : public NumberList Command *cmd; ChannelInfo *ci; MemoInfo *mi; - public: +public: MemoDelCallback(CommandSource &_source, Command *c, ChannelInfo *_ci, MemoInfo *_mi, const Anope::string &list) : NumberList(list, true), source(_source), cmd(c), ci(_ci), mi(_mi) { } @@ -38,7 +38,7 @@ class MemoDelCallback : public NumberList class CommandMSDel : public Command { - public: +public: CommandMSDel(Module *creator) : Command(creator, "memoserv/del", 0, 2) { this->SetDesc(_("Delete a memo or memos")); @@ -148,7 +148,7 @@ class MSDel : public Module { CommandMSDel commandmsdel; - public: +public: MSDel(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), commandmsdel(this) { diff --git a/modules/commands/ms_ignore.cpp b/modules/commands/ms_ignore.cpp index ca6e1ae86..9b8426445 100644 --- a/modules/commands/ms_ignore.cpp +++ b/modules/commands/ms_ignore.cpp @@ -13,7 +13,7 @@ class CommandMSIgnore : public Command { - public: +public: CommandMSIgnore(Module *creator) : Command(creator, "memoserv/ignore", 1, 3) { this->SetDesc(_("Manage the memo ignore list")); @@ -122,7 +122,7 @@ class MSIgnore : public Module { CommandMSIgnore commandmsignore; - public: +public: MSIgnore(c