summaryrefslogtreecommitdiff
path: root/modules/commands/hs_del.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/hs_del.cpp')
-rw-r--r--modules/commands/hs_del.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/hs_del.cpp b/modules/commands/hs_del.cpp
index a2d26739d..5df23e721 100644
--- a/modules/commands/hs_del.cpp
+++ b/modules/commands/hs_del.cpp
@@ -64,9 +64,9 @@ class CommandHSDelAll : public Command
{
FOREACH_MOD(I_OnDeleteVhost, OnDeleteVhost(na));
const NickCore *nc = na->nc;
- for (std::list<Serialize::Reference<NickAlias> >::const_iterator it = nc->aliases.begin(), it_end = nc->aliases.end(); it != it_end; ++it)
+ for (unsigned i = 0; i < nc->aliases->size(); ++i)
{
- na = *it;
+ na = nc->aliases->at(i);
na->RemoveVhost();
}
Log(LOG_ADMIN, source, this) << "for all nicks in group " << nc->display;