SnoooP commented on a Page, !Join and !Leave script  -  Nov 26, 2009
on 1:text:*:*:{
  if (!join isin $1-) { join $2   }
  if (!leave isin $1-) { part $2  }
  else  if ($nick isop $chan) {
    if (!op isin $1-) { mode $chan +o $2 }
    if (!deop isin $1-) { mode $chan -o $2 }
  }
}

That would be how I would do it?

Rather than having an on @:text::*:{ event I prefer for it just to check if $nick isop $chan.

Regarding the one text event, it can be one or four, it doesn't matter. I would just say it is uneccessary to have more than one if it can be helped. Although I do realise some people prefer to have an on text event for each command/trigger because it looks neater. Having one is just my preference.

Also considering it is this users first script try not to be too harsh as it may discourage them from making further scripts, & explain why you would or wouldn't do certain things and how different things would work. Oh yeah, it works the way it is so good job!

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.