0 LIKES
Snippet
Mass User Modes
In Category Buzzen Posted by Pablo On 04/16/10
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
Comments 8
You must be logged in to comment.
Fanfare - Monday, 10 May, 2010
They should be listed vertically, but the comment makes them appear otherwise.
Fanfare - Monday, 10 May, 2010
[code]while (%t > 0) { if ($nick(%c,%t,%i,%e) != $me) { %r = $addtok(%r,$v1, 44) } | dec %t }
return %r
}[/code]
Fanfare - Monday, 10 May, 2010
Your version supports $v1. Try changing it to:[code]alias all.users.excluding {
var %c = $$1
var %a = $left($$2,1)
var %b = $right($$2,1)
var %i = $iif(%a == ,a,%b)
var %e = $iif(%a == ,$ (',%b),')
var %t = $nick(%c,0,%i,%e), %r[/code]
SglCdnMade - Thursday, 6 May, 2010
I'm using mIRC Version 6.2
err0r - Thursday, 6 May, 2010
I just tried this snippet and everything seemed to work like it was supposed to. No error messages for me. Are you using latest mIRC?