mIRC Homepage
Posted By: CtrlAltDel aop -r question - 10/12/07 04:55 PM
This has had me stumped for some time now, and I think I may have asked this before, but can't find it.

Is there a way to remove all instances of a channel from the aop list besides manually editing every entry?

I have several channels I use mIRC's aop in, and some people are in more than one of them. I just want to remove the channel entry for those people instead of removing them entirely, but want to entirely remove those that have only that one channel entry.
Posted By: Lpfix5 Re: aop -r question - 10/12/07 08:06 PM
hmpph Im not entirely getting what you want you want done...

As I understood is that you want basically to clear "NICK" from all channels that she/he is aop on?

Or...
Posted By: RoCk Re: aop -r question - 10/12/07 08:48 PM

He wants to clear "#CHAN" from all aop entries, and if removing #chan from an entry leaves it with no channels, remove the entry.
Posted By: Lpfix5 Re: aop -r question - 10/12/07 08:54 PM
LoL Im gonna stay out of this topic its too confusing.
Posted By: Riamus2 Re: aop -r question - 10/12/07 09:29 PM
Sounds like a feature request for a new switch. Other than that, a script to go through and do it. I don't think it's possible any other way.
Posted By: CtrlAltDel Re: aop -r question - 11/12/07 07:27 PM
Lpfix5: or ... (hehe)

RoCk: exactly

Riamus2: since I'm an incompetent scripter, I guess I need a better way to phrase it and then make it a feature request ..

Thanks for the replies, everyone
Posted By: billythekid Re: aop -r question - 13/12/07 09:47 AM
you could check $aop(nick).type on a loop for each entry for #chan saving and modifying the matches, /aop -r the match then /aop the modified version.

it should be a fairly simple script really, an input box asking which channel to remove from all nicks and away you go...

If I have more time later I'll see what I can do.

btk
Posted By: CtrlAltDel Re: aop -r question - 13/12/07 03:21 PM
actually all you have to do is //aop -r $nick $chan $mask to update the channels for that person .. I just haven't been able to get a script to loop through the channel and apply the -r to each nick (I'm NOT a scripter, I'm a borrower blush )
Posted By: CtrlAltDel Re: aop -r question - 14/12/07 08:43 PM
Solved by going back to the help files yet again and modifying one of the example scripts (instead of using a while loop that I couldn't make work)
Code:
alias AOP_remove_channel {
  set %ra 1
  :next
  set %nick $nick(#,%ra)
  if %nick == $null goto done
  if %nick isop # .aop -r %nick # 7
  inc %ra
  goto next
  :done
}


Thanks again everyone (I'll get this yet laugh )
© mIRC Discussion Forums