Rank Command made Smaller

By Zaff on Mar 14, 2009

Simple Rank command using +v up to +q

Use-
!rank 1-5
!derank 1-5

1 = voice
2 = halfop
3 = op
4 = protect
5 = owner

Pycho - #AlertScript irc.swiftirc.net

on *:text:!*rank*:#:{
     var %modes +v +h +o +a +q
     var %modes2 -v -h -o -a -q
     if ($2) && ($2 isnum 1-5) && ($1 == !rank) {
          mode $chan $gettok(%modes,$2,32) $nick
     }
     elseif ($2) && ($2 isnum 1-5) && ($1 == !derank) {
          mode $chan $gettok(%modes2,$2,32) $nick
    }
}

Comments

Sign in to comment.
Zaff   -  Mar 15, 2009

I know that. i'm just answeing future bitching =D

 Respond  
slacker   -  Mar 14, 2009

eh like i said "you could do somthing like this as well"

i didnt say you had to.

 Respond  
Zaff   -  Mar 14, 2009

Yea, I could of. but this is just showing people what you can do with $gettok and so on

 Respond  
slacker   -  Mar 14, 2009

you could do somthing like this as well

on $@*:text:/^[+-][qaohv]/S:#:{ if ($nick(#,$nick,oh)) { mode # $1 $iif(!$2,$nick,$2) } }
 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.