mIRC Homepage
Posted By: hansie2010 How can I remove text in the channel - 16/02/10 10:51 PM
Sometimes someone put a text in the chatroom that I want to remove.
Is this possible in mIRC?
Posted By: HorseC Re: How can I remove text in the channel - 16/02/10 11:22 PM
Originally Posted By: hansie2010
Sometimes someone put a text in the chatroom that I want to remove.
Is this possible in mIRC?


You have little control over what others send to an IRC channel. However, if you are an operator of the channel, you can ban and/or kick users who use words that you find to be unacceptable.
There are many scripts available to do this for mIRC and most
other IRC clients. I would suggest you search some of the mIRC script sites for badword scripts.
Posted By: Riamus2 Re: How can I remove text in the channel - 17/02/10 12:09 AM
Alternatively, if all you want is to keep it from appearing on your own screen, you can "edit" the text that you see. It won't affect what others see, of course.

Code:
on ^*:text:*:#: {
  echo -a < $+ $nick $+ > $replace($1-,someword,something else of blank)
  haltdef
}


Granted, this is just a basic example of an echo. You may want to include timestamps, colors, nick modes, etc. so that it looks like your normal chat lines.
Posted By: hansie2010 Re: How can I remove text in the channel - 17/02/10 01:13 AM
No, I want to delete it in the chat room.
Posted By: HorseC Re: How can I remove text in the channel - 17/02/10 01:48 AM
Originally Posted By: hansie2010
No, I want to delete it in the chat room.


As I said earlier, you can not control what others send to a channel, all you can do is control after the fact.

Since the chat room (sometimes called channel) is controled by the Internet relay chat server (over which you have no control) it is not within your power to control what is sent to the channel.
Posted By: Wims Re: How can I remove text in the channel - 17/02/10 02:17 AM
If you just don't want to see a channel's message if some words are in this message, use :

Code:
on ^*:text:*:#:if ($istok(word1 word2 word3 wordN,$strip($1-),32)) haltdef


Posted By: asdfasdf Re: How can I remove text in the channel - 17/02/10 03:40 AM
Originally Posted By: Wims
If you just don't want to see a channel's message if some words are in this message, use :

Code:
on ^*:text:*:#:if ($istok(word1 word2 word3 wordN,$strip($1-),32)) haltdef



That will only work if the entire message is one of the words.

on ^$*:text:/\b(word1|word2|word3|wordN)\b/Si:#:haltdef
Posted By: Wims Re: How can I remove text in the channel - 17/02/10 11:51 AM
Oops smile
Posted By: Tomao Re: How can I remove text in the channel - 17/02/10 11:56 AM
Your regex's gonna get really big in length in the match text section if there are lots of words to add.
© mIRC Discussion Forums