diff options
Diffstat (limited to 'src/hostserv.c')
-rw-r--r-- | src/hostserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hostserv.c b/src/hostserv.c index ec46cdc86..9d7362903 100644 --- a/src/hostserv.c +++ b/src/hostserv.c @@ -177,9 +177,9 @@ void HostServSyncVhosts(NickAlias *na) if (!na || !na->hostinfo.HasVhost()) return; - for (int i = 0; i < na->nc->aliases.count; i++) + for (std::list<NickAlias *>::iterator it = na->nc->aliases.begin(); it != na->nc->aliases.end(); ++it) { - NickAlias *nick = static_cast<NickAlias *>(na->nc->aliases.list[i]); + NickAlias *nick = *it; nick->hostinfo.SetVhost(na->hostinfo.GetIdent(), na->hostinfo.GetHost(), na->hostinfo.GetCreator()); } } |