nav.gif Home » Snippets » Mass User Modes

ammenul.gif
ammenur.gif
Please Register/Login to enhance your access of our site and services. We support Twitter and Facebook logins. Logging in will reduce the amount of advertisments.
ammenul.gif
ammenur.gif


ammenul.gif
ammenur.gif
Mass User Modes
Category: Buzzen

About
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


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

err0r Posted on: 4/16/10
avatarnice job

d33j4y Posted on: 4/16/10
avatarYep, well done Ex!! :)

SglCdnMade Posted on: 5/5/10
avatarI 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)

err0r Posted on: 5/6/10
avatarI just tried this snippet and everything seemed to work like it was supposed to. No error messages for me. Are you using latest mIRC?

SglCdnMade Posted on: 5/6/10
avatarI'm using mIRC Version 6.2

Fanfare Posted on: 5/10/10
avatarYour version supports $v1. Try changing it to:
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

Fanfare Posted on: 5/10/10
avatar
while (%t > 0) { if ($nick(%c,%t,%i,%e) != $me) { %r = $addtok(%r,$v1, 44) } | dec %t }
return %r
}

Fanfare Posted on: 5/10/10
avatarThey should be listed vertically, but the comment makes them appear otherwise.

Sorry you must register and log-in to post comments
ammenul.gif
ammenur.gif
ammenul.gif
ammenur.gif
Snippet Information
Creator:extremity
Date Added:4/16/10
Last Updated:4/16/10
Tags:mass user mode
Problem?Report Snippet
ammenul.gif
ammenur.gif



32 user(s) currently online (0 members, 31 guests, 1 anonymous)
No Members Logged In



lhfooter.gif
TechDesigns007.com | Valid XHTML 1.0 | Valid CSS | Load Time: 0.080330 sec(s)
rfooter.gif


Latest Alert: 07.31.2010 mIRC 7.1 released. Get it HERE
oldline
oldline
oldline
oldline