diff options
| author | 2022-10-05 19:36:56 +0100 | |
|---|---|---|
| committer | 2022-10-05 19:36:56 +0100 | |
| commit | 08918dca94f13ce4cbf3674a9541c750540fd056 (patch) | |
| tree | c40d45852121c03971583f79a171c7089b55532f /src/modules/m_operjoin.cpp | |
| parent | Modernize an old-style loop that was previously missed. (diff) | |
Fix the indentation of various modules.
Diffstat (limited to 'src/modules/m_operjoin.cpp')
| -rw-r--r-- | src/modules/m_operjoin.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
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<std::string> operChans; - bool override; +private: + std::vector<std::string> 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) |
