Skip to content
TG007 community snippet #34

Mass User Modes

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

By Pablo Added Apr 15, 2010 Updated Apr 15, 2010
Buzzen All snippets
mIRC script 14 lines
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
Source code

mIRC script

14 lines · 500 characters
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
Community

Comments

Want to join the discussion? Sign in to TG007.
FanfareMonday, 10 May, 2010
They should be listed vertically, but the comment makes them appear otherwise.
FanfareMonday, 10 May, 2010
[code]while (%t > 0) { if ($nick(%c,%t,%i,%e) != $me) { %r = $addtok(%r,$v1, 44) } | dec %t } return %r }[/code]
FanfareMonday, 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),'wink var %t = $nick(%c,0,%i,%e), %r[/code]
SglCdnMadeThursday, 6 May, 2010
I'm using mIRC Version 6.2
err0rWednesday, 5 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?
View 3 older comments
SglCdnMadeWednesday, 5 May, 2010
I loaded this snippet into a new file ine remotes. When I tried it, I received the following error: * Invalid format: $iif (line 15, Mass.mrc)
guestFriday, 16 April, 2010
Yep, well done Ex!! smile
err0rFriday, 16 April, 2010
nice job