From 08918dca94f13ce4cbf3674a9541c750540fd056 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 5 Oct 2022 19:36:56 +0100 Subject: Fix the indentation of various modules. --- src/modules/m_operjoin.cpp | 66 +++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'src/modules/m_operjoin.cpp') diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index 6f28b2c4d..e44224f4c 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -30,47 +30,47 @@ class ModuleOperjoin final : public Module { - private: - std::vector operChans; - bool override; +private: + std::vector operChans; + bool override; - public: - ModuleOperjoin() - : Module(VF_VENDOR, "Allows the server administrator to force server operators to join one or more channels when logging into their server operator account.") - { - } +public: + ModuleOperjoin() + : Module(VF_VENDOR, "Allows the server administrator to force server operators to join one or more channels when logging into their server operator account.") + { + } - void ReadConfig(ConfigStatus& status) override - { - auto tag = ServerInstance->Config->ConfValue("operjoin"); + void ReadConfig(ConfigStatus& status) override + { + auto tag = ServerInstance->Config->ConfValue("operjoin"); - override = tag->getBool("override", false); - irc::commasepstream ss(tag->getString("channel")); - operChans.clear(); + override = tag->getBool("override", false); + irc::commasepstream ss(tag->getString("channel")); + operChans.clear(); - for (std::string channame; ss.GetToken(channame); ) - operChans.push_back(channame); - } + for (std::string channame; ss.GetToken(channame); ) + operChans.push_back(channame); + } - void OnPostOper(User* user) override - { - LocalUser* localuser = IS_LOCAL(user); - if (!localuser) - return; + void OnPostOper(User* user) override + { + LocalUser* localuser = IS_LOCAL(user); + if (!localuser) + return; - for (const auto& operchan : operChans) - { - if (ServerInstance->Channels.IsChannel(operchan)) - Channel::JoinUser(localuser, operchan, override); - } + for (const auto& operchan : operChans) + { + if (ServerInstance->Channels.IsChannel(operchan)) + Channel::JoinUser(localuser, operchan, override); + } - irc::commasepstream ss(localuser->oper->getConfig("autojoin")); - for (std::string channame; ss.GetToken(channame); ) - { - if (ServerInstance->Channels.IsChannel(channame)) - Channel::JoinUser(localuser, channame, override); - } + irc::commasepstream ss(localuser->oper->getConfig("autojoin")); + for (std::string channame; ss.GetToken(channame); ) + { + if (ServerInstance->Channels.IsChannel(channame)) + Channel::JoinUser(localuser, channame, override); } + } }; MODULE_INIT(ModuleOperjoin) -- cgit v1.3.1-10-gc9f91