mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 00:04:48 -07:00
display reason for ban to banned user
This commit is contained in:
parent
6344b987de
commit
ff3eb9b5f4
19 changed files with 98 additions and 59 deletions
|
|
@ -4,5 +4,12 @@ message Event_ConnectionClosed {
|
|||
extend SessionEvent {
|
||||
optional Event_ConnectionClosed ext = 1002;
|
||||
}
|
||||
optional string reason = 1;
|
||||
enum CloseReason {
|
||||
OTHER = 1;
|
||||
SERVER_SHUTDOWN = 2;
|
||||
TOO_MANY_CONNECTIONS = 3;
|
||||
BANNED = 4;
|
||||
}
|
||||
optional CloseReason reason = 1;
|
||||
optional string reason_str = 2;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,4 +13,5 @@ message Command_BanFromServer {
|
|||
optional string address = 2;
|
||||
optional uint32 minutes = 3;
|
||||
optional string reason = 4;
|
||||
optional string visible_reason = 5;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ message Response {
|
|||
RespInIgnoreList = 16;
|
||||
RespWouldOverwriteOldSession = 17;
|
||||
RespChatFlood = 18;
|
||||
RespUserIsBanned = 19;
|
||||
}
|
||||
enum ResponseType {
|
||||
JOIN_ROOM = 1000;
|
||||
|
|
|
|||
|
|
@ -8,4 +8,5 @@ message Response_Login {
|
|||
optional ServerInfo_User user_info = 1;
|
||||
repeated ServerInfo_User buddy_list = 2;
|
||||
repeated ServerInfo_User ignore_list = 3;
|
||||
optional string denied_reason_str = 4;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue