mIRC Home    About    Download    Register    News    Help

Print Thread
#191510 10/12/07 04:55 PM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
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.

Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
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...


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #191516 10/12/07 08:48 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

He wants to clear "#CHAN" from all aop entries, and if removing #chan from an entry leaves it with no channels, remove the entry.

RoCk #191517 10/12/07 08:54 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
LoL Im gonna stay out of this topic its too confusing.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Jun 2003
Posts: 994
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
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


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
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


billythekid
Joined: Jun 2003
Posts: 994
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
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 )


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Jun 2003
Posts: 994
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
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 )


I refuse to engage in a battle of wits with an unarmed person. wink

Link Copied to Clipboard