all the m $nick should be msg $nick else you will get back \"M Unknown command\"
EDIT Ah nvm i didnt see ur alias script you posted for this as well maybe you should add them together in one script