diff options
| author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-28 00:19:19 -0400 |
|---|---|---|
| committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-07-28 00:19:19 -0400 |
| commit | 4700c9626861b193798b3cf3d53fb89a913c5819 (patch) | |
| tree | 94a026d3d8683170afd06b26be36ddf82d45bb6e /src/operserv.cpp | |
| parent | 66c0e280ee9d4940fe5a477d3e933ba4221e35db (diff) | |
Yet more annoying code cleanup, plus made Server's Links list into a normal variable and not a pointer.
Diffstat (limited to 'src/operserv.cpp')
| -rw-r--r-- | src/operserv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operserv.cpp b/src/operserv.cpp index 30aa52b63..51f77f6b1 100644 --- a/src/operserv.cpp +++ b/src/operserv.cpp @@ -128,9 +128,9 @@ void server_global(const Server *s, const Anope::string &message) if (s != Me && !s->HasFlag(SERVER_JUPED)) notice_server(Config.s_GlobalNoticer, s, "%s", message.c_str()); - if (s->GetLinks()) + if (!s->GetLinks().empty()) { - for (std::list<Server *>::const_iterator it = s->GetLinks()->begin(), it_end = s->GetLinks()->end(); it != it_end; ++it) + for (std::list<Server *>::const_iterator it = s->GetLinks().begin(), it_end = s->GetLinks().end(); it != it_end; ++it) server_global(*it, message); } } |
