summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Vassdal <shutter@canternet.org>2014-01-30 06:25:02 -0800
committerAttila Molnar <attilamolnar@hush.com>2014-01-30 22:06:10 +0100
commit86a7fa3a06c44470707e586896eca54fc506dfc7 (patch)
tree9cf292cfcdf147d05ebdd3b4f178c8a98e705f6b /src
parent5ac1ffce1168c4e3409e6667ff30285bfbc82bde (diff)
m_conn_join: Fixed indentation
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_conn_join.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/modules/m_conn_join.cpp b/src/modules/m_conn_join.cpp
index fdcf82dcc..aec32e192 100644
--- a/src/modules/m_conn_join.cpp
+++ b/src/modules/m_conn_join.cpp
@@ -24,35 +24,35 @@
class ModuleConnJoin : public Module
{
- public:
- void Prioritize()
+ public:
+ void Prioritize()
+ {
+ ServerInstance->Modules->SetPriority(this, I_OnPostConnect, PRIORITY_LAST);
+ }
+
+ Version GetVersion() CXX11_OVERRIDE
+ {
+ return Version("Forces users to join the specified channel(s) on connect", VF_VENDOR);
+ }
+
+ void OnPostConnect(User* user) CXX11_OVERRIDE
+ {
+ LocalUser* localuser = IS_LOCAL(user);
+ if (!localuser)
+ return;
+
+ std::string chanlist = ServerInstance->Config->ConfValue("autojoin")->getString("channel");
+ chanlist = localuser->GetClass()->config->getString("autojoin", chanlist);
+
+ irc::commasepstream chans(chanlist);
+ std::string chan;
+
+ while (chans.GetToken(chan))
{
- ServerInstance->Modules->SetPriority(this, I_OnPostConnect, PRIORITY_LAST);
- }
-
- Version GetVersion() CXX11_OVERRIDE
- {
- return Version("Forces users to join the specified channel(s) on connect", VF_VENDOR);
- }
-
- void OnPostConnect(User* user) CXX11_OVERRIDE
- {
- LocalUser* localuser = IS_LOCAL(user);
- if (!localuser)
- return;
-
- std::string chanlist = ServerInstance->Config->ConfValue("autojoin")->getString("channel");
- chanlist = localuser->GetClass()->config->getString("autojoin", chanlist);
-
- irc::commasepstream chans(chanlist);
- std::string chan;
-
- while (chans.GetToken(chan))
- {
- if (ServerInstance->IsChannel(chan))
- Channel::JoinUser(localuser, chan);
- }
+ if (ServerInstance->IsChannel(chan))
+ Channel::JoinUser(localuser, chan);
}
+ }
};
MODULE_INIT(ModuleConnJoin)