diff options
Diffstat (limited to 'src/modes/cmode_o.cpp')
-rw-r--r-- | src/modes/cmode_o.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modes/cmode_o.cpp b/src/modes/cmode_o.cpp index 855976bba..a77b40ce0 100644 --- a/src/modes/cmode_o.cpp +++ b/src/modes/cmode_o.cpp @@ -56,13 +56,13 @@ void ModeChannelOp::RemoveMode(chanrec* channel) for (CUList::iterator i = list->begin(); i != list->end(); i++) { - userrec* n = i->second; - copy.insert(std::make_pair(n,n)); + userrec* n = i->first; + copy.insert(std::make_pair(n,n->nick)); } for (CUList::iterator i = copy.begin(); i != copy.end(); i++) { sprintf(moderemove,"-%c",this->GetModeChar()); - const char* parameters[] = { channel->name, moderemove, i->second->nick }; + const char* parameters[] = { channel->name, moderemove, i->first->nick }; ServerInstance->SendMode(parameters, 3, n); } delete n; |