styler

By larry on Nov 05, 2006

Just past this script to your remote.
If you say in a channel somewans name this script will put it in [] and place a @ for op, % for halfop ...
I also add a colorscript to it, just find out yourself how it works ;)
I just want to know if it can be made better or if there are any bugs

menu * { 
  style:/set %style $$?="Choose a style" 
}
menu channel {
  styler
  .add this channel:/set %stylechan %stylechan $active
  .remove this channel:/set %stylechan $remove(%stylechan, $active )
}
on *:input:*: {
  if ($left($1,1) != /) && ($left($1,1) != $chr(33)) {
    if ($nick(#,$1) != $null) && ($1 !isnum) {
      checkforstat $1 $active
      if ($active isin %stylechan) { 
        //msg $active  $+ $chr(91) $+ %stat $+ $1 $+ $chr(93) $+  $+ %style $+ $2-
        unset %stat        
        halt
      }
      else {
        //msg $active  $+ $chr(91) $+ %stat $+ $1 $+ $chr(93) $+  $+ $2-
        unset %stat
        halt
      }
    }
    if ($active isin %stylechan) {
      //msg $active %style $+ $1-
      halt
    }
  }
}
alias checkforstat {
  if ($1 isop $2) set %stat @
  elseif ($1 isvoice $2) set %stat +
  elseif ($1 ishop $2) set %stat %
}

Comments

Sign in to comment.
larry   -  Nov 05, 2006

ah okay, Thank You very much Noutrious

 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.