You sure about that napa?? Also, this script has a pretty hefty fault. "join $nick".. joins the name, if the channel exists fair enough..
Napa, your script would just execute the cmd "join/part" no?:L