This commit is contained in:
2026-04-10 23:05:59 +04:00
parent 3d5c98ce1d
commit 05fe3a1245
2 changed files with 7 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ class Client
else if (text.StartsWith("/groups"))
{
// Запрос списка групп и клиентов
byte[] data = Encoding.UTF8.GetBytes("/list");
byte[] data = Encoding.UTF8.GetBytes("/groups");
stream.Write(data, 0, data.Length);
}
else

View File

@@ -79,6 +79,12 @@ class Server
HandleGroupCommand(clientName, groupName);
SendClientList(stream);
}
else if (message.StartsWith("/groups"))
{
string groupName = message.Substring(7);
HandleGroupCommand(clientName, groupName);
SendClientList(stream);
}
else if (message.StartsWith("/msg "))
{
string[] parts = message.Substring(5).Split(' ', 2);