on @*:text:+i:#:{ if ($me == no-nick) { mode $chan +i msg $chan $nick set "Invite Only" on $chan } } }