proAdhoc: Make some functions return boolean values.

Also shortens validNetworkName a little.