Server-side fix to /adminmsg not working right

This commit is contained in:
ln-zookeeper 2016-04-11 16:33:57 +03:00
parent 705a9cc820
commit 3f7b28f85b

View file

@ -1290,7 +1290,7 @@ void server::process_query(const network::connection sock,
// Commands a player may issue. // Commands a player may issue.
if (command == "status") { if (command == "status") {
response << process_command(command + " " + pl->second.name(), pl->second.name()); response << process_command(command + " " + pl->second.name(), pl->second.name());
} else if (command.find("adminmsg") == 0 } else if (command.find("adminmsg") == 0 || command.find("report") == 0
|| command == "games" || command == "games"
|| command == "metrics" || command == "metrics"
|| command == "motd" || command == "motd"