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.
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...
He wants to clear "#CHAN" from all aop entries, and if removing #chan from an entry leaves it with no channels, remove the entry.
LoL Im gonna stay out of this topic its too confusing.
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.
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
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
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
)
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)
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
)