1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 19:46:38 +02:00

Fixed some issues with reconnecting if we disconnect from the uplink

This commit is contained in:
Adam
2010-08-01 20:05:52 -04:00
parent e8d6524411
commit 90976b6672
9 changed files with 53 additions and 34 deletions
+4 -4
View File
@@ -130,8 +130,8 @@ void server_global(const Server *s, const Anope::string &message)
if (!s->GetLinks().empty())
{
for (std::list<Server *>::const_iterator it = s->GetLinks().begin(), it_end = s->GetLinks().end(); it != it_end; ++it)
server_global(*it, message);
for (unsigned i = 0, j = s->GetLinks().size(); i < j; ++i)
server_global(s->GetLinks()[i], message);
}
}
@@ -147,10 +147,10 @@ void oper_global(const Anope::string &nick, const char *fmt, ...)
if (!nick.empty() && !Config.AnonymousGlobal)
{
Anope::string rmsg = "[" + nick + "] " + msg;
server_global(Me->GetUplink(), rmsg);
server_global(Me->GetLinks().front(), rmsg);
}
else
server_global(Me->GetUplink(), msg);
server_global(Me->GetLinks().front(), msg);
}
/**************************************************************************/