mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2011
Posts: 1
P
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

Joined: Jun 2011
Posts: 4
D
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!!!


Link Copied to Clipboard