/// <summary> /// Processes message of the day /// MOTD has string "server" first, so /// we will skip over it /// </summary> /// <param name="msg"></param> /// <param name="currIndex"></param> private void ProcessMOTD(byte[] msg, int currIndex) { currIndex++; StringBuilder s = new StringBuilder(); while (msg[currIndex++] != 0) { currIndex++; } while (msg[currIndex] != 0) { s.Append((char)msg[currIndex++]); } GUIBundle MOTDbund = new GUIBundle(); MOTDbund.MOTDText = s.ToString(); MOTDbund.gameNum = 0; WindowMngr.updateWindow(MOTDbund); handlePM(s.ToString()); }