1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 17:16:39 +02:00

Burst our channels with the uplink when we connect & fixed bug #1274

This commit is contained in:
Adam
2011-06-02 14:59:34 -04:00
parent 184b346166
commit 3ad93a31c9
10 changed files with 120 additions and 100 deletions
+2 -41
View File
@@ -23,44 +23,9 @@ void introduce_user(const Anope::string &user)
throw FatalException("introduce_user loop detected");
lasttime = now;
if (!user.empty())
User *u = finduser(user);
if (u)
{
User *u = finduser(user);
if (u)
{
ircdproto->SendClientIntroduction(u, ircd->pseudoclient_mode);
BotInfo *bi = findbot(u->nick);
if (bi)
{
XLine x(bi->nick, "Reserved for services");
ircdproto->SendSQLine(NULL, &x);
for (UChannelList::const_iterator cit = bi->chans.begin(), cit_end = bi->chans.end(); cit != cit_end; ++cit)
ircdproto->SendJoin(bi, (*cit)->chan, &Config->BotModeList);
}
}
return;
}
ircdproto->SendBOB();
for (unsigned i = 0; i < Me->GetLinks().size(); ++i)
{
Server *s = Me->GetLinks()[i];
if (s->HasFlag(SERVER_JUPED))
{
ircdproto->SendServer(s);
}
}
/* We make the bots go online */
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it)
{
User *u = it->second;
ircdproto->SendClientIntroduction(u, ircd->pseudoclient_mode);
BotInfo *bi = findbot(u->nick);
@@ -73,10 +38,6 @@ void introduce_user(const Anope::string &user)
ircdproto->SendJoin(bi, (*cit)->chan, &Config->BotModeList);
}
}
/* Load MLock from the database now that we know what modes exist */
for (registered_channel_map::iterator it = RegisteredChannelList.begin(), it_end = RegisteredChannelList.end(); it != it_end; ++it)
it->second->LoadMLock();
}
/*************************************************************************/