summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-26 17:13:11 -0400
committerAdam <Adam@anope.org>2013-05-26 17:13:11 -0400
commit22658d63bdb1e52a66f4514af45fa55ca5891345 (patch)
tree673304ab19f7e077b489354248247867518331f8 /src/servers.cpp
parentf2dee1e1d642b07947f59f91dfba9af34ef84685 (diff)
Get rid of the remaining references in the core to specific services. Move more stuff out of the core to the proper modules.
Diffstat (limited to 'src/servers.cpp')
-rw-r--r--src/servers.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/servers.cpp b/src/servers.cpp
index 0c1019216..d8fc84a81 100644
--- a/src/servers.cpp
+++ b/src/servers.cpp
@@ -247,33 +247,6 @@ void Server::Sync(bool sync_links)
if (this->GetUplink() && this->GetUplink() == Me)
{
- for (registered_channel_map::iterator it = RegisteredChannelList->begin(), it_end = RegisteredChannelList->end(); it != it_end; ++it)
- {
- ChannelInfo *ci = it->second;
- if (ci->HasExt("PERSIST"))
- {
- bool created;
- ci->c = Channel::FindOrCreate(ci->name, created, ci->time_registered);
-
- if (ModeManager::FindChannelModeByName("PERM") != NULL)
- {
- if (created)
- IRCD->SendChannel(ci->c);
- ci->c->SetMode(NULL, "PERM");
- }
- else
- {
- if (!ci->bi)
- ci->WhoSends()->Assign(NULL, ci);
- if (ci->c->FindUser(ci->bi) == NULL)
- {
- ChannelStatus status(Config->GetModule("botserv")->Get<const Anope::string>("botmodes"));
- ci->bi->Join(ci->c, &status);
- }
- }
- }
- }
-
FOREACH_MOD(I_OnPreUplinkSync, OnPreUplinkSync(this));
for (channel_map::const_iterator it = ChannelList.begin(), it_end = ChannelList.end(); it != it_end; ++it)
@@ -347,8 +320,6 @@ Server *Server::Find(const Anope::string &name, bool name_only)
return NULL;
}
-/*************************************************************************/
-
static inline char& nextID(char &c)
{
if (c == 'Z')