X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_conn_join.cpp;h=bfac8147d76e2f66db164b3ef6af90078911cecc;hb=623ba6ae49f8e1e0958f921fa178af8a95797c1c;hp=113e49dffa48b0172830dbab53a340ba8c9baf57;hpb=8790551dc182cd8804ee7d8ef89ccb31067cc2a4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_conn_join.cpp b/src/modules/m_conn_join.cpp index 113e49dff..bfac8147d 100644 --- a/src/modules/m_conn_join.cpp +++ b/src/modules/m_conn_join.cpp @@ -27,7 +27,7 @@ class ModuleConnJoin : public Module { public: - void init() + void init() CXX11_OVERRIDE { Implementation eventlist[] = { I_OnPostConnect }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); @@ -38,12 +38,12 @@ class ModuleConnJoin : public Module ServerInstance->Modules->SetPriority(this, I_OnPostConnect, PRIORITY_LAST); } - Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Forces users to join the specified channel(s) on connect", VF_VENDOR); } - void OnPostConnect(User* user) + void OnPostConnect(User* user) CXX11_OVERRIDE { LocalUser* localuser = IS_LOCAL(user); if (!localuser) @@ -57,7 +57,7 @@ class ModuleConnJoin : public Module while (chans.GetToken(chan)) { - if (ServerInstance->IsChannel(chan, ServerInstance->Config->Limits.ChanMax)) + if (ServerInstance->IsChannel(chan)) Channel::JoinUser(localuser, chan); } }