mIRC Home    About    Download    Register    News    Help

Print Thread
Any way to ignore messages with specific keywords? #232597 10/06/11 10:38 PM
Joined: Jun 2011
Posts: 1
P
pappajuggs Offline OP
Mostly harmless
OP Offline
Mostly harmless
P
Joined: Jun 2011
Posts: 1
I'm not a very active user but I do use mIRC regularly from time to time. I was just wondering whether or not there was a way to specify certain keywords that would get any message including it to just not show. I do not want the user saying the message to get ignored, and i do not want to ignore anything else they have to say.

Is there any way to accomplish this? help is appreciated. smile

Re: Any way to ignore messages with specific keywords? [Re: pappajuggs] #232856 27/06/11 03:30 AM
Joined: Jun 2011
Posts: 4
D
DiegoBH Offline
Self-satisified door
Offline
Self-satisified door
D
Joined: Jun 2011
Posts: 4
Open mirc and set a var %shitlist with the words that will be blocked.
Ex.: //set %shitlist ass,fuck,hell,motherfucker

Open remotes (alt+r) -> file, new and paste the code:
Code:
on ^*:text:*:*:{
  var %wordst = $calc($pos($1-,$chr(32),0) + 1)
  var %count = 1
  var %checkwords = 0
  while (%count <= %wordst) {
    var %word = $remove($gettok($1-,%count,32),$chr(44),!,.,?,;,-,_)
    if ($istok(%shitlist,%word,44)) { var %checkwords = 1 | break }
    inc %count
  }
  if (%checkwords == 1) { echo $iif($target == $me,$nick,$target) Msg from $nick is blocked! | haltdef }
}


Thats all!!!