diff --git a/src/License.hh b/src/License.hh index 24cbebf1..f5b8935b 100644 --- a/src/License.hh +++ b/src/License.hh @@ -13,20 +13,20 @@ class LicenseIndex; struct License { enum Flag : uint32_t { // clang-format off - KICK_USER = 0x00000001, - BAN_USER = 0x00000002, - SILENCE_USER = 0x00000004, - CHANGE_LOBBY_INFO = 0x00000008, - CHANGE_EVENT = 0x00000010, - ANNOUNCE = 0x00000020, - FREE_JOIN_GAMES = 0x00000040, - UNLOCK_GAMES = 0x00000080, - DEBUG = 0x01000000, - MODERATOR = 0x00000007, - ADMINISTRATOR = 0x000000FF, - ROOT = 0x010000FF, + KICK_USER = 0x00000001, + BAN_USER = 0x00000002, + SILENCE_USER = 0x00000004, + CHANGE_LOBBY_INFO = 0x00000008, + CHANGE_EVENT = 0x00000010, + ANNOUNCE = 0x00000020, + FREE_JOIN_GAMES = 0x00000040, + UNLOCK_GAMES = 0x00000080, + DEBUG = 0x01000000, + MODERATOR = 0x00000007, + ADMINISTRATOR = 0x000000FF, + ROOT = 0x7FFFFFFF, - UNUSED_BITS = 0xFEFFFF00, + UNUSED_BITS = 0x7EFFFF00, // clang-format on }; diff --git a/src/ServerShell.cc b/src/ServerShell.cc index 52b01065..6d7c0280 100644 --- a/src/ServerShell.cc +++ b/src/ServerShell.cc @@ -336,7 +336,7 @@ Proxy session commands:\n\ l->serial_number = stoul(token.substr(7)); } else if (starts_with(token, "flags=")) { - string mask = token.substr(11); + string mask = token.substr(6); if (mask == "normal") { l->flags = 0; } else if (mask == "mod") {