Simple Auto-Voice/Op/Protect

By aeros on Jul 20, 2005

Simple Auto-Voice/Op/Protect I did.. very simple and it works.. hope you guys like :D

on *:TEXT:!aop *:#:{
  if ($nick isop $chan) && ($me isop $chan) {
    aop $2
    msg $chan Added $2 to Auto-Op List!
  }
}

on *:TEXT:!avop *:#:{
  if ($nick isop $chan) && ($me isop $chan) {
    avoice $2
    msg $chan Added $2 to Auto-Voice List!
  }
}

on *:TEXT:!protect *:#:{
  if ($nick isop $chan) && ($me isop $chan) {
    protect $2
    msg $chan Added $2 to Protect List!
  }
}

Comments

Sign in to comment.
Roy_   -  Oct 01, 2007

@ mountaindew\'s code, You don\'t really need to specify if $2 is in the channel. It will still add to mIRC\'s internal list.

@ the original code and the author, You are not really checking the address and if $2 is specified. That could receive a pretty big error. You also neglect features such as a delete option or an edit option. Interesting idea, but the coding isn\'t quite complete.

--Roy

 Respond  
guest598594   -  Oct 01, 2007

ugh its another 2004...

 Respond  
guest598594   -  Oct 01, 2007
on @*:text:*:{
  if ($nick isop $chan && $2 ison $chan) {
    if ($1 == !aop) { 
      aop $addresS($2,2) 
      msg $chan Added $2 to Auto-Op List! 
    }
    if ($1 == !avop) { 
      avoice $address($2,2) 
      msg $chan Added $2 to Auto-Voice List! 
    }
    if ($1 == !protect) { 
      protect $address($2,2)
      msg $chan Added $2 to Protect List!
    }
  }
}

rather than saying if ($nick isop $chan) every line, just do it at the beginning :P and also, use the on @*: to check if $me isop, and it also checks for $2 ison $chan, and all on texts are together

 Respond  
DeathRyder082   -  Jul 29, 2005

oh hmm i was looking for @ sorry ;/

 Respond  
DeathRyder082   -  Jul 21, 2005

uh looks like anyone can use ;/
maybe on admin:text and then add admin:nick to users, but idk

 Respond  
DeathRyder082   -  Jul 21, 2005

nice job

 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.