diff --git a/modules/core/channel.cpp b/modules/core/channel.cpp index b4caac2..407767b 100644 --- a/modules/core/channel.cpp +++ b/modules/core/channel.cpp @@ -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);