Quote:
the easyest way is to use hostmasks instead of identify.
try this (ALT+R)->

Code:
 
on 2:text:!join*:?:join $2
on 2:text:!part*:?:part $2
 


to add new users, type /auser 2 *!*@users.host/ip


You could also put a check if the bot is in the channel or not and make sure that a second parameter was entered.

Code:
 on 2:text:!join*:?: {
 if ($2) && ($2 !ischan) join $2
}

on 2:text:!part*:?:{
if ($2) && ($2 ischan) part $2
}