You should just use what Jethro_ said, or you can make all commands triggered via channel or PM/query, wouldn't be that hard using goto.