Use menu nicklist and $$1 instead of * and $1. This will make the aliases run only if a nick is selected.