Jethro commented on a Page, Basic Leave and Assign Snippet  -  Jan 01, 2010
on $*:TEXT:/!(join|part)\s(.*)/Si:#: {
  if ($nick isop $chan) { $regml(1) $+($chr(35),$regml(2)) }
}

You don't even have to enter the #ChanName. Just !join ChanName and !part ChanName without #

Take blitzz's word for it so that only ops can command the client running the code to join or part.

Oh blitzz, no ! negate symbol in isop operator 'cause that will mean if a user is NOT an op...lol

 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.