mirror of https://github.com/deavminet/libdnet.git
Added ChannelMessage message type
This commit is contained in:
parent
0da5f7b481
commit
78ddaf85ec
|
@ -9,6 +9,8 @@ message DNETMessage
|
|||
{
|
||||
AUTH = 0;
|
||||
REGISTER = 1;
|
||||
CHANNEL_CMD = 2;
|
||||
LIST_CHANS = 3;
|
||||
}
|
||||
|
||||
// Type of message
|
||||
|
@ -18,6 +20,29 @@ message DNETMessage
|
|||
bytes content = 2;
|
||||
}
|
||||
|
||||
// ChannelMessage
|
||||
//
|
||||
// These represent channel commands
|
||||
message ChannelCommand
|
||||
{
|
||||
enum MessageType
|
||||
{
|
||||
CREATE = 0;
|
||||
DESTROY = 1;
|
||||
JOIN = 2;
|
||||
LEAVE = 3;
|
||||
SET_PERMS = 4;
|
||||
GET_PERMS = 5;
|
||||
}
|
||||
|
||||
// The channel to which the command applies
|
||||
string name;
|
||||
|
||||
// Additional data (dependent on command)
|
||||
bytes additionalData;
|
||||
}
|
||||
|
||||
|
||||
//UserMessage
|
||||
//
|
||||
//All authenticated messages
|
||||
|
|
Loading…
Reference in New Issue