proAdhoc: Make some functions return boolean values.

Also shortens validNetworkName a little.
Merge pull request #7143 from lioncash/net

proAdhoc: Make some functions return boolean values.