Demote Promote

By Foresthello on Dec 09, 2007

Well what this bacicaly does is it promotes you from regular to voice to halfop to op when you use the .promote command on someone

And it will demote someone from op to halfop to voice to regular if you use the demote command on someone

on @*:text:.promote*:#:{ 
  if ($nick isop $chan) {
    if $$2 isreg $chan {    .mode # +v $$2  } 
    else { 
      .mode # $iif($$2 ishop $chan,-h+o,$iif($$2 isvoice $chan,-v+h)) $$2 $$2 
    } 
  } 
  on @*:text:.demote*:#:{
    if ($nick isop $chan) { 
      if $$2 != $me { 
        if $$2 isvoice $chan {    .mode # -v $$2  } 
        else { 
          .mode # $iif($$2 isop $chan,-o+h,$iif($$2 ishop $chan,-h+v)) $$2 $$2 
        } 
      } 
    }
  }
}

Comments

Sign in to comment.
Cheiron   -  Dec 25, 2007

with the editing done, it works nicely.thanks for the input there Mountaindew. i give this a nice 6/10 now it been cleaned up.
nice work people

 Respond  
guest598594   -  Dec 13, 2007

woops my bad, those if ($nick...) the $nick should be $2

 Respond  
Adam118   -  Dec 13, 2007

ermmm that just spammed the chan in a endless loop of +v and -v then banned my own bot :/

 Respond  
guest598594   -  Dec 13, 2007

*

    if ($1 == .demote && $2 != $me) {
 Respond  
guest598594   -  Dec 13, 2007

umm if you want only ops to use this, use this code:

on @*:text:*:#:{
  if ($2 && $nick isop $chan) {
    if ($1 == .promote) {
      if ($nick isvoice $chan) mode # -v+h $v1 $v1
      if ($nick isreg $chan) mode # +v $v1
      if ($nick ishop $chan) mode # -h+o $v1 $v1
    }
    if ($1 == .demote) {
      if ($nick isvoice $chan) mode # -v $v1 $v1
      if ($nick ishop $chan) mode # -h+v $v1 $v1
      if ($nick isop $chan) mode # -o+h $v1 $v1
    }
  }
}
 Respond  
Adam118   -  Dec 13, 2007

how do i change that?

 Respond  
guest598594   -  Dec 13, 2007
if $$2 isreg $chan {    .mode # +v $$2  } 

yes, if they dont have anything, they can voice ppl

 Respond  
Adam118   -  Dec 13, 2007

i used this and it let any users use the script even if they didnt have voice :/ It works though.

 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.