mIRC Home    About    Download    Register    News    Help

Print Thread
#111685 18/02/05 12:05 AM
Joined: Feb 2005
Posts: 1
N
Mostly harmless
OP Offline
Mostly harmless
N
Joined: Feb 2005
Posts: 1
I have a son who uses mIRC, but i'm worried about her seeing swear words, so i've set as many words i can think off to be highlighted and then set the hightlight colour to the colour of the baclground, but my son has found out and has started hightlighting the words.


Is there anyway to get the room to close when a swaer word is entered?

TIA

#111686 18/02/05 12:27 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
You'd need to use the ON TEXT event, /help ON TEXT.

Example:
on *:text:*:#:{
if (*swear* iswm $1-) || (*swear2* iswm $1-) || (*swear3* iswm $1-) {
part #
}
}


You could just use the same method to block the text sent though:

on ^*:text:*:#:{
if (*swear* iswm $1-) || (*swear2* iswm $1-) || (*swear3* iswm $1-) {
halt
}
}


Also see /help halting default text.

Code such as the stuff above goes in the Remote section of the Script Editor, press ALT+R to access it. If there's already code in the screen when you press ALT+R, go to File > New and paste it there.

Hope that helps smile

Regards,


Mentality/Chris
#111687 18/02/05 01:13 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Quote:
I have a son who uses mIRC, but i'm worried about her seeing swear words


:tongue:


New username: hixxy
#111688 18/02/05 03:30 AM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
im too lazy but i might suggest giving the person a version that draws from a hash table or txt for ease of use or a variable for that matter


The Kodokan will move you, one way or another.
#111689 18/02/05 05:37 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Heres one I saw somewhere, that i thought was quite nice, I have remade it and havent tested it but i think its correct.

alt-r/file/new paste code below.
Code:
on ^*:text:*:#:{
  tokenize 32 $strip($1-)
  if ($1- != $replacex($1-,  swearword1 , golly , swearword2 , gosh , swearword3 , drat, swearword4 , oh dear, swearword5 , whaaaat )) {
    echo -itlbfmr $chan < $+ $Nick $+ > $v2
    halt
  }
}

* Note : this well pick out words inside other words however. Also you loose colors if anythings replaced.

You replace swearword1 with a swear word and golly you could replace with a phrase that would match in non potty mouth language.
You can have more than 5 as well.


Link Copied to Clipboard