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!
}
}
@ 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
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