diff --git a/dero_ns_cli.pl b/dero_ns_cli.pl index 64ff615..081dc31 100755 --- a/dero_ns_cli.pl +++ b/dero_ns_cli.pl @@ -219,6 +219,11 @@ sub check_name { my $name = shift; + if (length $name < 6 or length $name >= 64) { + print "Name ($name) not compatible, need to longer than 6 charaters and shorter than 64\n"; + return; + } + # Check if name is registered # curl http://127.0.0.1:40402/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"nametoaddress","params":{"name":"TESTUSERNAME" }}' -H 'Content-Type: application/json'