Mass modes popup

By joshschooley444 on Aug 30, 2009

Its a nicklist popup with user modes, i, tired of editing mircs default popups so i made this, I've never seen one this simple but ehh it works.
lol

menu nicklist {
  Modes
  .Owner:/mode # +qqqqqqqqqqqqqqqqqqqq $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Deowner:/mode # -qqqqqqqqqqqqqqqqqqqq $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Protect:/mode # +aaaaaaaaaaaaaaaaaaaa $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Deprotect:/mode # -aaaaaaaaaaaaaaaaaaaa $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Op:/mode # +oooooooooooooooooooo $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Deop:/mode # -oooooooooooooooooooo $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Halfop:/mode # +hhhhhhhhhhhhhhhhhhhh $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Dehalfop:/mode #-hhhhhhhhhhhhhhhhhhhh $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Voice:/mode # +vvvvvvvvvvvvvvvvvvvv $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
  .Devoice:/mode # -vvvvvvvvvvvvvvvvvvvv $$1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20
}

Comments

Sign in to comment.
Jethro   -  Sep 17, 2009
menu nicklist {
  Mass Modes
  .$submenu($massmode($1))
}
alias massmode {
  var %c = $+($,chan), %n = $+($,1-)
  if ($1 = begin) return -
  if ($1 = 1) return Owner:mode %c $+(+,$str(q,$modespl)) %n
  if ($1 = 2) return Deowner:mode %c $+(-,$str(q,$modespl)) %n
  if ($1 = 3) return Protect:mode %c $+(+,$str(a,$modespl)) %n
  if ($1 = 4) return Deprotect:mode %c $+(-,$str(a,$modespl)) %n
  if ($1 = 5) return Op:mode %c $+(+,$str(o,$modespl)) %n
  if ($1 = 6) return Deop:mode %c $+(-,$str(o,$modespl)) %n
  if ($1 = 7) return Halfop:mode %c $+(+,$str(h,$modespl)) %n
  if ($1 = 8) return Dehalfop:mode %c $+(-,$str(h,$modespl)) %n
  if ($1 = 9) return Voice:mode %c $+(+,$str(v,$modespl)) %n
  if ($1 = 10) return Devoice:mode %c $+(-,$str(v,$modespl)) %n
  if ($1 = end) return -
}
 Respond  
Phoenix-   -  Sep 17, 2009

Oh dear lord..

mode $chan $+(+,$str(q,$modespl)) $1-

And use the same code for all modes... It would make it a lot easier.

 Respond  
Jethro   -  Sep 16, 2009

I think "part-time" scripter is more like it. lol

But remember every one is learning here, and it doesn't matter if one's ability in scripting doesn't match another. As you script more, you'll eventually, spontaneously tend to find more efficient, shorter ways to go about making scripts.

 Respond  
joshschooley444   -  Sep 16, 2009

I didn't do it any of those ways because to be honest I don't know how. I'm just a side scripter (if you could even call it that) everything I script is basic.

 Respond  
Jonesy44   -  Sep 01, 2009

No, lol. more efficient, yes

 Respond  
Weasel   -  Aug 31, 2009

yeah, but that will be alot more annoying than /mode # user1user2

 Respond  
Jethro   -  Aug 30, 2009

Weasel, if you're gonna do it that way to voice users, you might as well use a while loop and /pvoice command:

var %x = 1 | while ($nick(#,%x,a,~hoqv)) { pvoice 2 # $v1 | inc %x }

This will only trigger upon regular users without user modes. Those who's been voiced won't get voiced again. There's a delay for two seconds to prevent mode flood, but can be adjusted longer.

 Respond  
Weasel   -  Aug 30, 2009

could do this to do every one in the channel $str(v,$nick(#,0,a)) $nick(#,1,a) $nick(#,2,a) $nick(#,3,a) $nick(#,4,a) $nick(#,5,a) $nick(#,6,a) $nick(#,7,a) $nick(#,8,a) $nick(#,9,a

 Respond  
Jethro   -  Aug 30, 2009

Yes, zNigel-, $modespl is a good identifier to go about mass mode, but what if the server only allows 5 modes or less to be set at a time? You can check the allowance of it by using:

//echo -a $modespl

to see how many modes can be set together in your server.

 Respond  
zNigel-   -  Aug 30, 2009

Using $modespl is way better

 Respond  
Jethro   -  Aug 30, 2009

Based upon the original code, it could've been written as:

menu nicklist {
  Modes
  .Owner:/mode # $+(+,$str(q,20)) $$1-20
  .Deowner:/mode # $+(-,$str(q,20)) $$1-20
  .Protect:/mode # $+(+,$str(a,20)) $$1-20
  .Deprotect:/mode # $+(-,$str(a,20)) $$1-20
  .Op:/mode # $+(+,$str(o,20)) $$1-20
  .Deop:/mode # $+(-,$str(o,20)) $$1-20
  .Halfop:/mode # $+(+,$str(h,20)) $$1-20
  .Dehalfop:/mode # $+(-,$str(h,20)) $$1-20
  .Voice:/mode # $+(+,$str(v,20)) $$1-20
  .Devoice:/mode # $+(-,$str(v,20)) $$1-20
}

By the way, jonesy44's got the right idea of using $str, but with an alias, which is not what the op has intended initially.

 Respond  
Jonesy44   -  Aug 30, 2009
alias mm mode $1 $+($left($2,1),$str($right($2,1),$numtok($3-,32)) $3-

/m #chan +mode nicks..

 Respond  
Gemster   -  Aug 30, 2009

why not use it like this:

Example

  .Mass voice:/mode # +vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $$1-
  .Mass devoice:/mode # -vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv $$1-
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.