Exemple #1
0
 public void Add(string key, User user)
 {
     base.BaseAdd(key, user);
 }
Exemple #2
0
 /// <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);
     }
 }