public void Join(string username) { User user = new User(username); this.nickNames.Add(user); //this.nickNames.Sort(); this.server.ReceivedChannelCommands(this, "JOIN"); }
public void setNickNames(string[] commandParts) { for (int intI = 6; intI < commandParts.Length; intI++) { User newUser = new User(commandParts[intI]); this.nickNames.Add(newUser); } //this.nickNames.Sort(); this.server.ReceivedChannelCommands(this, "NAMES"); }