mIRC Home    About    Download    Register    News    Help

Print Thread
Feature:ignore message, containing keyword(s) #149370 17/05/06 06:02 PM
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)

Re: Feature:ignore message, containing keyword(s) #149371 17/05/06 06:18 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
script it yourself ?


IceCapped
Re: Feature:ignore message, containing keyword(s) #149372 17/05/06 06:26 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
Half of mIRC's features could have been scripted. "Just script it" isn't a very good reason not to include something.

Re: Feature:ignore message, containing keyword(s) #149373 17/05/06 07:13 PM
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.

Re: Feature:ignore message, containing keyword(s) #149374 17/05/06 08:14 PM
Joined: Nov 2004
Posts: 802
Jigsy Offline
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 802
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?
Re: Feature:ignore message, containing keyword(s) #149375 18/05/06 11:34 AM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
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
Re: Feature:ignore message, containing keyword(s) #149376 20/05/06 08:38 AM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
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
  }
}

Re: Feature:ignore message, containing keyword(s) #149377 12/06/06 03:53 PM
Joined: Jul 2003
Posts: 655
Om3n Offline
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