diff options
author | Sadie Powell <sadie@witchery.services> | 2021-05-31 20:57:48 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-05-31 20:57:48 +0100 |
commit | df4313f5bbacbfcb6592b6d90fe5362192287d59 (patch) | |
tree | f16f74b745083d6f8575d86c8d19565869c4d9c4 /src/bots.cpp | |
parent | 53cd3f47b5c5afa503e96380e9e22d7d35108714 (diff) | |
parent | 3728a0bda1cf010520c4fae821fc9c98b2adb083 (diff) |
Merge branch '2.0' into 2.1.
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 2f6c916a7..94b688f0d 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -62,9 +62,9 @@ BotInfo::~BotInfo() IRCD->SendSQLineDel(&x); } - for (std::set<ChannelInfo *>::iterator it = this->channels->begin(), it_end = this->channels->end(); it != it_end; ++it) + for (std::set<ChannelInfo *>::iterator it = this->channels->begin(), it_end = this->channels->end(); it != it_end;) { - ChannelInfo *ci = *it; + ChannelInfo *ci = *it++; this->UnAssign(NULL, ci); } |