Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
core/channel: Iterate less unsafely
Browse files Browse the repository at this point in the history
  • Loading branch information
edk0 committed Oct 14, 2019
1 parent cbc924e commit 06b7e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ void ChannelHandler::handle_quit(const Message *m)
return;

for (Client::ChannelIterator chi = c->begin_channels(), che = c->end_channels();
chi != che; ++chi)
c->leave_chan(*chi);
chi != che; )
c->leave_chan(*chi++);

b->remove_client(c);

Expand Down

0 comments on commit 06b7e42

Please sign in to comment.