From 2ab7c7a3d0d905f313ea0600f02fc451cb948c40 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Tue, 10 Jan 2017 00:58:01 +0000 Subject: [PATCH] Fix channel iteration in QUIT handler FossilOrigin-Name: fc04e870e4ab6b4946fb51848dd60e6fc3e74b1120408db70f73d817f04c3627 --- src/IRCConnection.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/IRCConnection.m b/src/IRCConnection.m index 50f9a5b..0b590b5 100644 --- a/src/IRCConnection.m +++ b/src/IRCConnection.m @@ -399,8 +399,9 @@ reason = [line substringWithRange: of_range(pos + 2, [line length] - pos - 2)]; - for (OFMutableSet *channel in _channels) - [channel removeObject: [user nickname]]; + for (OFString *channel in _channels) + [[_channels objectForKey: channel] + removeObject: [user nickname]]; if ([_delegate respondsToSelector: @selector(connection:didSeeUserQuit:reason:)])