diff --git a/lib/Lacuna/Building/Intelligence.pm b/lib/Lacuna/Building/Intelligence.pm index 95c4543a..336ec9cc 100644 --- a/lib/Lacuna/Building/Intelligence.pm +++ b/lib/Lacuna/Building/Intelligence.pm @@ -150,6 +150,7 @@ sub name_spy { Lacuna::Verify->new(content=>\$name, throws=>[1005, 'Invalid name for a spy.']) ->not_empty ->no_profanity + ->length_lt(31) ->no_restricted_chars; my $empire = $self->get_empire_by_session($session_id); my $building = $empire->get_building($self->model_class, $building_id);