馃悰 PART: Clear channel members instead of creating new Map

parent 5cd3d78a
......@@ -28,7 +28,7 @@ class PartCommand extends JoinCommand {
client.emit("PART", channel.channelMembers.get(user.ircUsername));
if(user.isClient()) {
channel.joined = false;
channel.channelMembers = new Map();
channel.channelMembers.clear();
if(channel.partCallback != null)
channel.partCallback();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment