diff options
author | Adam <Adam@Anope.org> | 2010-05-24 23:36:40 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:04:05 -0400 |
commit | 2fba686904e6f78ebab35df171c5757afeebf05d (patch) | |
tree | 523782bccc479606206f271cd6708b2f70fe8278 /src/hostserv.c | |
parent | 3a2c2a916a26f4fa1844e71a9f1c2fc25337fd2b (diff) |
Burned slist, rewrote operservs XLine code
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()); } } |