mIRC Homepage
Ignore messages, containing keyword(s)
Ignore messages from user, which nick containing keyword(s)
script it yourself ?
Half of mIRC's features could have been scripted. "Just script it" isn't a very good reason not to include something.
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.
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 ...
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
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
  }
}
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.
© mIRC Discussion Forums