Bielie commented on a Page, !join and !part channel  -  Jun 02, 2010

I think this works better and is pretty easy.....

on $*:text:/^[.!@]join/:#:{
;; Your the only one that can use the command
if ($nick != $me) { return }
;; If your on the channel you want to join you cant join it again!
elseif ($nick ison $2-) { notice $nick Im already on that channel! | return }
;; You join the channel if everything is fine.
else { join $2- | halt }
}
on $*:text:/^[.!@]part/:#:{
;; Your the only one that can use the command
if ($nick != $me) { return }
;; If your not on the channel you want to part you cant part it!
if ($nick !ison $2-) { notice $nick Im not on this channel
;; You part the channel if everything is fine.
else { msg # $nick just left the channel. | part # $nick | halt }
 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.