public void Add(string key, User user) { base.BaseAdd(key, user); }
/// <summary> /// Sends a message to the selected destination. /// </summary> public void SendMessage(User user, Message message) { if (user.Name == ALL_USERS) { this.BroadcastMessage (message); } else { message.Destination = user.IP; message.Nick = Config.MyName (); message.IsBroadcast = false; _conn.Send (message); } }