aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_conn_join.cpp
diff options
context:
space:
mode:
authorGravatar Daniel Vassdal2014-01-30 06:25:02 -0800
committerGravatar Attila Molnar2014-01-30 22:06:10 +0100
commit86a7fa3a06c44470707e586896eca54fc506dfc7 (patch)
tree9cf292cfcdf147d05ebdd3b4f178c8a98e705f6b /src/modules/m_conn_join.cpp
parentAllow Timers to delete themselves in Tick() (diff)
m_conn_join: Fixed indentation
Diffstat (limited to 'src/modules/m_conn_join.cpp')
-rw-r--r--src/modules/m_conn_join.cpp46
1 files changed, 23 insertions, 23 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()
- {
- ServerInstance->Modules->SetPriority(this, I_OnPostConnect, PRIORITY_LAST);
- }
+ 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);
- }
+ 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;
+ 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);
+ std::string chanlist = ServerInstance->Config->ConfValue("autojoin")->getString("channel");
+ chanlist = localuser->GetClass()->config->getString("autojoin", chanlist);
- irc::commasepstream chans(chanlist);
- std::string chan;
+ irc::commasepstream chans(chanlist);
+ std::string chan;
- while (chans.GetToken(chan))
- {
- if (ServerInstance->IsChannel(chan))
- Channel::JoinUser(localuser, chan);
- }
+ while (chans.GetToken(chan))
+ {
+ if (ServerInstance->IsChannel(chan))
+ Channel::JoinUser(localuser, chan);
}
+ }
};
MODULE_INIT(ModuleConnJoin)