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


ammenutopl.gif
TG007 Snippet
ammenutopr.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
ammenutopl.gif
Info
ammenutopr.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



25 user(s) currently browsing site (0 members, 25 guests, 0 anonymous)
No Members Logged In

12 Users in IRCommunity
inføвøт, err0r, «Chãin™», ♥fiestýβสbỳ♥, båbyġurł, Enya, Spike1506, Timeless, «·Ħåĺø·», ﴾Ɣ﴿ⓨⓢⓣⓘⓒ★§ⓟⓔⓛⓛ, danger , [☠] Ƙʀʏᴘтιӿ [☠]



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


Latest Alert: 10.14.2011 mIRC 7.22 released
oldline
oldline
oldline
oldline