mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
hello

is it possible to add the masks of my protect list to ignore list with one script?

ofcourse they should be added correctly, the mask and the relevant options

thanks

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
It would be possible to ignore all masks protected. Would be a simple while loop.

Quote:
ofcourse they should be added correctly, the mask and the relevant options
More informatin is needed here (or an example)

protect is: (nick(/mask) (chan(s) to protect on) (network)
ignore is: (nick/mask) (type(s) of ignore) (network)

- What do you exactly mean with "relevant options" ? Please clarify.
- May I ask why you want to ignore those you want to protect? smile

Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
options mean all the things like this "-u" etc

I want to ignore them because I dont want to hear from them :S

Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
anyone please?

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
-uN is a possible flag for ignore, but not for protect...
In fact, besides "network" they do have no "relevant options" (properties) in common..

-requota-
$protect is: (nick/mask) (chan(s) to protect on) (network to protect on)
$ignore is: (nick/mask) (type(s) of ignore) (network to ignore on)
So, the only thing you can do is loop all protections and ignore them on that network without further properties... or set these properties/options up manually.

Code:
alias ignoreprotecteds {
  var %nr = 1
  while ($protect(%nr)) {
    ignore $ifmatch $protect(%nr).network 
    inc %nr
  }
}

(Note: I still don't get the meaning of ignoring those you do protect, anyway...)

Last edited by Horstl; 24/07/07 12:05 PM.
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
thanks !

can you make it ignore the protected masks for prv query only?

thanks !

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
from the mIRC help file:
Quote:
The /ignore command

/ignore [-lrpcntikdwxu#] <on|off|nick/address> [type] [network]

Where p = private, c = channel, n = notice, t = ctcp, i = invite, k = control codes, d = dccs.

(...)

Note: If you have a /query window open with someone, private messages from them won't be ignored even if their address matches an ignore address.

therefore, if you want to ignore private messages only, change the line
Code:
ignore $ifmatch $protect(%nr).network
to
Code:
ignore -p $ifmatch $protect(%nr).network


Link Copied to Clipboard