Example #1
0
 private void getMsg(string[] args)
 {
     if (CurrClient.UserID != "")
     {
         string msg    = args[0];
         bool   NewMsg = CurrServerDB.AddMsg(CurrClient.UserID, msg);
         if (NewMsg)
         {
             CurrClient.Send((int)ServerCommand.MsgAccepted);
             SpreadMsg(CurrServerDB.getLatestMsgFromUser(CurrClient.UserID));
         }
     }
     else
     {
         CurrClient.Send((int)ServerCommand.NotLoggedIn);
     }
 }