Don't remove channel from client channel list when parting it

If we have a logic that handles user parts, leave parts to be handled by this logic. Removing the channel before letting ChatSharp parse parts make it so a user cannot join the same channel after parting it.
This commit is contained in:
Alexandre Oliveira 2017-08-25 19:44:07 -03:00
parent 8d91e92168
commit 2d914b2114
1 changed files with 0 additions and 2 deletions

View File

@ -58,7 +58,6 @@ namespace ChatSharp
if (!Channels.Contains(channel))
throw new InvalidOperationException("Client is not present in channel.");
SendRawMessage("PART {0}", channel);
Channels.Remove(Channels[channel]);
}
/// <summary>
@ -69,7 +68,6 @@ namespace ChatSharp
if (!Channels.Contains(channel))
throw new InvalidOperationException("Client is not present in channel.");
SendRawMessage("PART {0} :{1}", channel, reason);
Channels.Remove(Channels[channel]);
}
/// <summary>