mIRC Home    About    Download    Register    News    Help

Print Thread
#65788 29/12/03 02:33 AM
Joined: Feb 2003
Posts: 810
C
cold Offline OP
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
I suggest the option of entering words/wildcards that mIRC will remove from the phrases before looking if the original highlight words/wildcards match.
For example, I set "*cold*" to highlight. I have my reasons for not using "cold" itself, or any other wildcard matching "cold", it must be that one. However, if someone says "coldplay" (the band), "coldfusion", "coldwar" etc., highlight is given as well.

I know this is the intended behaviour and that's why I suggest the exceptions list addition. It works just like the original list, but every word that matches what's in this list would be removed from the phrase before checking the original one.
So, if I had "*coldplay*,*coldwar*" in this new list, the situation above wouldn't exist.

From a mIRC script viewpoint, it would have the same concept as this example code:
Code:
ON *:TEXT:*:#:{

  ; First, remove all the exceptions from the phrase
  var %text = $1-
  while ($wildtok(%text,%exception,1,32) != $null) && ($findtok(%text,$ifmatch,1,32)) {
    %text = $deltok(%text,$ifmatch,32)
  }

  ; Now search for highlight words
  [...]

}


* cold edits his posts 24/7
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I like the concept, but I think it should be more like an ACL list. I.e.

Allow *
Deny 1.2.3.4

Would allow all but 1.2.3.4, that being your exception.

Highlight *Cold*
Don't *coldplay*
Don't *coldwar*
Don't *coldfusion*

Sort of thing


-KingTomato
Joined: Feb 2003
Posts: 810
C
cold Offline OP
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Yeah individual exceptions would be better indeed.


* cold edits his posts 24/7

Link Copied to Clipboard