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/bs_kick.cpp | |
parent | 36602224b8b1a11326a224779d16bcb12f0ed532 (diff) |
Optimizations of much of the more commonly used code
Diffstat (limited to 'modules/commands/bs_kick.cpp')
-rw-r--r-- | modules/commands/bs_kick.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp index 3f7cc16c2..97f6b6035 100644 --- a/modules/commands/bs_kick.cpp +++ b/modules/commands/bs_kick.cpp @@ -808,7 +808,7 @@ class BSKick : public Module { Channel *c = cit->second; for (Channel::ChanUserList::iterator it = c->users.begin(), it_end = c->users.end(); it != it_end; ++it) - (*it)->Shrink("bs_main_userdata"); + it->second->Shrink("bs_main_userdata"); c->Shrink("bs_main_bandata"); } } @@ -1033,7 +1033,7 @@ class BSKick : public Module { for (User::ChanUserList::iterator it = u->chans.begin(); it != u->chans.end();) { - Channel *chan = (*it)->chan; + Channel *chan = it->second->chan; ++it; if (chan->ci && chan->ci->HasExt("BS_KICK_AMSGS") && !chan->ci->AccessFor(u).HasPriv("NOKICK")) |