About this snippet
Overview
Little mass user mode snippet that:
Sets mode for 5 users at once
Doesn't set a mode for a user who already has that mode (which is annoying to me)
... May require flood protection ;) .. And I might get this right one day
Sets mode for 5 users at once
Doesn't set a mode for a user who already has that mode (which is annoying to me)
... May require flood protection ;) .. And I might get this right one day
menu channel {
Mass User Modes
.+q Owner: { mmode # +q $all.users.excluding(#, +q) }
.-q Owner: { mmode # -q $all.users.excluding(#, -q) }
.-
.+o Host: { mmode # +o $all.users.excluding(#, +o) }
.-o Host: { mmode # -o $all.users.excluding(#, -o) }
.-
.+v Voice: { mmode # +v $all.users.excluding(#, +v) }
.-v Voice: { mmode # -v $all.users.excluding(#, -v) }
}
;ALL.USERS.EXCEPT [channel level] returns list of all users not @ level, tokened by 44
alias all.users.excl

var %t = $nick(%c,0,%i,%e), %r[/code]