display reason for ban to banned user

This commit is contained in:
Max-Wilhelm Bruker 2012-01-01 19:38:52 +01:00
parent 6344b987de
commit ff3eb9b5f4
19 changed files with 98 additions and 59 deletions

View file

@ -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;
}

View file

@ -13,4 +13,5 @@ message Command_BanFromServer {
optional string address = 2;
optional uint32 minutes = 3;
optional string reason = 4;
optional string visible_reason = 5;
}

View file

@ -19,6 +19,7 @@ message Response {
RespInIgnoreList = 16;
RespWouldOverwriteOldSession = 17;
RespChatFlood = 18;
RespUserIsBanned = 19;
}
enum ResponseType {
JOIN_ROOM = 1000;

View file

@ -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;
}