diff options
author | Adam <Adam@anope.org> | 2013-02-13 12:49:39 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-02-14 01:20:18 -0500 |
commit | 225b7c38c127fbc6aac6724012f71c9483a4da77 (patch) | |
tree | e7eb4fc6f802119ec0ff55fd769a447b956e0439 /modules/commands/ns_suspend.cpp | |
parent | 994866461c44d57e9b1dd1813283185230c2da45 (diff) |
Make NickCore::aliases a vector
Diffstat (limited to 'modules/commands/ns_suspend.cpp')
-rw-r--r-- | modules/commands/ns_suspend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp index 675db1330..a4cc7f355 100644 --- a/modules/commands/ns_suspend.cpp +++ b/modules/commands/ns_suspend.cpp @@ -73,9 +73,9 @@ class CommandNSSuspend : public Command nc->ExtendMetadata("suspend:expire", stringify(Anope::CurTime + expiry_secs)); - for (std::list<Serialize::Reference<NickAlias> >::iterator it = nc->aliases.begin(), it_end = nc->aliases.end(); it != it_end;) + for (unsigned i = 0; i < nc->aliases->size(); ++i) { - NickAlias *na2 = *it++; + NickAlias *na2 = nc->aliases->at(i); if (na2 && *na2->nc == *na->nc) { |