Handy script!
Guys keep in mind that the function 'ns' does not come default enabled. If you have problems with it change it to NickServ or '.msg NickServ'