Skip to content

Commit

Permalink
fix: permission check before accepting restart requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenapte committed Feb 4, 2024
1 parent 4c27d9f commit 057a5e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BallanceMMOServer/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1286,6 +1286,8 @@ class server: public role {
break;
}
case bmmo::RestartRequest: {
if (deny_action(networking_msg->m_conn))
break;
auto msg = bmmo::message_utils::deserialize<bmmo::restart_request_msg>(networking_msg);
if (!client_exists(msg.content.victim, true)) {
Printf(bmmo::ansi::Italic, "(#%u, %s) requested to restart #%u's (not found) current level!",
Expand Down

0 comments on commit 057a5e8

Please sign in to comment.