diff options
author | Adam <Adam@anope.org> | 2013-04-07 23:46:44 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-07 23:46:44 -0500 |
commit | fb7fef7a849342ab8463743497e781c5c3e6ae88 (patch) | |
tree | 5d230a68b6eed70c7b4f718410dd62fea779654c /modules/commands/os_list.cpp | |
parent | 36602224b8b1a11326a224779d16bcb12f0ed532 (diff) |
Optimizations of much of the more commonly used code
Diffstat (limited to 'modules/commands/os_list.cpp')
-rw-r--r-- | modules/commands/os_list.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/os_list.cpp b/modules/commands/os_list.cpp index f4de45203..6880bbbc0 100644 --- a/modules/commands/os_list.cpp +++ b/modules/commands/os_list.cpp @@ -44,7 +44,7 @@ class CommandOSChanList : public Command for (User::ChanUserList::iterator uit = u2->chans.begin(), uit_end = u2->chans.end(); uit != uit_end; ++uit) { - ChanUserContainer *cc = *uit; + ChanUserContainer *cc = uit->second; if (!modes.empty()) for (std::set<Anope::string>::iterator it = modes.begin(), it_end = modes.end(); it != it_end; ++it) @@ -142,7 +142,7 @@ class CommandOSUserList : public Command for (Channel::ChanUserList::iterator cuit = c->users.begin(), cuit_end = c->users.end(); cuit != cuit_end; ++cuit) { - ChanUserContainer *uc = *cuit; + ChanUserContainer *uc = cuit->second; if (!modes.empty()) for (std::set<Anope::string>::iterator it = modes.begin(), it_end = modes.end(); it != it_end; ++it) |