Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Nov 17, 2014
1 parent 2435976 commit 7651676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/game.cpp
Expand Up @@ -834,6 +834,8 @@ void game::process_message(simple_wml::document& data, const player_map::iterato

bool game::is_legal_command(const simple_wml::node& command, bool is_player) {
// Only single commands allowed.
// NOTE: non-dependent commands might contain a [checkup] tag after their first data.
// But those packages are usually sended by teh currenly active player which is not checks here
if (!command.one_child()) return false;
// Chatting is never an illegal command.
if (command.child("speak")) return true;
Expand Down

0 comments on commit 7651676

Please sign in to comment.