on *:TEXT:&:#: {
if ($nick == no-nick) && ($regex($1,^((?:\+)|(?:\-))([imst])$)) {
mode $chan $+($regml(1),$regml(2)) | msg $chan $nick set "Invite Only" on $chan
}
}
You can use regex to add more channel modes and use +m, +s +i ..-m -s -i..etc.. to get the job done.