also allow clearing labels
This commit is contained in:
parent
6cca30563e
commit
cda7238f59
1 changed files with 2 additions and 1 deletions
|
@ -710,7 +710,8 @@ bool game::filter_commands(const network::connection member, config& cfg) const
|
|||
if ((*i)->all_children().size() != 1
|
||||
// Chatting is never an illegal command.
|
||||
|| !((*i)->child("speak") || (is_player(member)
|
||||
&& ((*i)->child("label") || (*i)->child("rename")))))
|
||||
&& ((*i)->child("label") || (*i)->child("clear_label")
|
||||
|| (*i)->child("rename")/* || (*i)->child("choose")*/))))
|
||||
{
|
||||
std::stringstream msg;
|
||||
msg << "Removing illegal command from: "
|
||||
|
|
Loading…
Add table
Reference in a new issue