servatrice/common/pb/event_connection_closed.proto
Daenyth af09d0d294 Reject more invalid usernames from clients.
Specifically this should cover people connecting with a username of
"\u200C"
2012-07-25 00:12:35 -04:00

17 lines
360 B
Protocol Buffer

import "session_event.proto";
message Event_ConnectionClosed {
extend SessionEvent {
optional Event_ConnectionClosed ext = 1002;
}
enum CloseReason {
OTHER = 1;
SERVER_SHUTDOWN = 2;
TOO_MANY_CONNECTIONS = 3;
BANNED = 4;
USERNAMEINVALID = 5;
}
optional CloseReason reason = 1;
optional string reason_str = 2;
optional uint32 end_time = 3;
}