update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user