xC/xP: relay and render channel modes

This commit is contained in:
2022-09-21 16:32:08 +02:00
parent 1f0e0b1ce4
commit d3628928b9
3 changed files with 79 additions and 34 deletions

View File

@@ -131,6 +131,8 @@ struct EventMessage {
case CHANNEL:
string server_name;
ItemData topic<>;
// This includes parameters, separated by spaces.
string modes;
case PRIVATE_MESSAGE:
string server_name;
} context;
@@ -169,7 +171,7 @@ struct EventMessage {
void;
case REGISTERED:
string user;
string user_mode;
string user_modes;
// Theoretically, we could also send user information in this state,
// but we'd have to duplicate both fields.
case DISCONNECTING: