update
This commit is contained in:
@@ -51,7 +51,7 @@ class Client
|
|||||||
else if (text.StartsWith("/groups"))
|
else if (text.StartsWith("/groups"))
|
||||||
{
|
{
|
||||||
// Запрос списка групп и клиентов
|
// Запрос списка групп и клиентов
|
||||||
byte[] data = Encoding.UTF8.GetBytes("/list");
|
byte[] data = Encoding.UTF8.GetBytes("/groups");
|
||||||
stream.Write(data, 0, data.Length);
|
stream.Write(data, 0, data.Length);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -79,6 +79,12 @@ class Server
|
|||||||
HandleGroupCommand(clientName, groupName);
|
HandleGroupCommand(clientName, groupName);
|
||||||
SendClientList(stream);
|
SendClientList(stream);
|
||||||
}
|
}
|
||||||
|
else if (message.StartsWith("/groups"))
|
||||||
|
{
|
||||||
|
string groupName = message.Substring(7);
|
||||||
|
HandleGroupCommand(clientName, groupName);
|
||||||
|
SendClientList(stream);
|
||||||
|
}
|
||||||
else if (message.StartsWith("/msg "))
|
else if (message.StartsWith("/msg "))
|
||||||
{
|
{
|
||||||
string[] parts = message.Substring(5).Split(' ', 2);
|
string[] parts = message.Substring(5).Split(' ', 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user