private void ListRooms() { if (!Connected) { Console.WriteLine("Please conect to a server before listing rooms"); return; } String Message; String Responce; Message = "CHLS" + IDString(); Responce = Send(Message); String[] Channels = Responce.Split(','); Console.Clear(); Console.WriteLine("Room List:"); foreach (string ChannelName in Channels) { Console.WriteLine(ChannelName); } return; }
private bool ViewMembers(String RoomName) { if (!Connected) { Console.WriteLine("Please connect to a server before viewing members of a room"); } if (!UserChannels.Contains(RoomName)) { Console.WriteLine("Please Join a room before viewing members"); } String Message; String Responce; Message = "MEMB" + IDString() + RoomName; Responce = Send(Message); String[] Members = Responce.Split(','); Console.WriteLine("The Members of room " + RoomName + " are:"); foreach (String Member in Members) { Console.WriteLine(Member.Trim()); } return(true); }