mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2006
Posts: 6
J
JustasM Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2006
Posts: 6
Ignore messages, containing keyword(s)
Ignore messages from user, which nick containing keyword(s)

Joined: Apr 2005
Posts: 1,009
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
script it yourself ?


IceCapped
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Half of mIRC's features could have been scripted. "Just script it" isn't a very good reason not to include something.

Joined: May 2006
Posts: 6
J
JustasM Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: May 2006
Posts: 6
Code:
script it yourself ?

OK. Plz answer questions:
1)How to catch message before it appear at channel or query window
2)How get symbol from catched message?
plz with examples.

Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
I have a suggestion for the ignore list (since this is about ignores ... I hope.)

I find it really frustrating when you edit an ignore and you ok it, then you shoot down to the bottom of the list automatically then you have to scroll all the way back to where you were to edit the next ignore.

So I propose either a check box to turn it on or off or turn it off entirely.

If you don't understand what I mean then check this out.

Ignore ...


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Yeah, I see what you mean and havent liked this for ages but I always took this in stride. Annoying yes, but for me, I can live with it. Would I like to see it gone? Sure laugh


Those who fail history are doomed to repeat it
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Quote:
OK. Plz answer questions:
1)How to catch message before it appear at channel or query window
2)How get symbol from catched message?
plz with examples.


As a simple example, the following will prevent any messages from being shown if it contains the word hello.

Code:
on ^*:TEXT:*:#:{
  if ($regex($1-,/\bhello\b/iS)) {
    haltdef
  }
}



As a slightly more advanced example, the following will not display messages that contain variations of the word hello. By variation I mean that instead of using the letter 'o' at the end, you can substitute it with the number '0' and it still looks similar. Maybe I'm going a bit far by including numbers in place of letters, but it's simply for example purposes.

Code:
on ^*:TEXT:*:#:{
  if ($regex($1-,/\bh(?:e|3)(?:l|1|i){2}(?:o|0)\b/iS)) {
    haltdef
  }
}

Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Quote:
Ignore messages from user, which nick containing keyword(s)

This particular part of your suggestion is already the way mirc's ignore list works.. you can enter in a nick!ident@host format, complete with wildcard support.

Although you would need an ignore entry for each keyword as the ignore system has wildcard support only, and not grep like scripting would allow.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard