Fix channel iteration in QUIT handler
FossilOrigin-Name: fc04e870e4ab6b4946fb51848dd60e6fc3e74b1120408db70f73d817f04c3627
This commit is contained in:
parent
5e66df5cbf
commit
2ab7c7a3d0
1 changed files with 3 additions and 2 deletions
|
@ -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:)])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue