diff options
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); } } |
