mIRC Home    About    Download    Register    News    Help

Print Thread
How can I remove text in the channel #218527 16/02/10 10:51 PM
Joined: Feb 2010
Posts: 5
H
hansie2010 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Feb 2010
Posts: 5
Sometimes someone put a text in the chatroom that I want to remove.
Is this possible in mIRC?

Re: How can I remove text in the channel [Re: hansie2010] #218528 16/02/10 11:22 PM
Joined: Mar 2004
Posts: 526
HorseC Offline
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
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.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
Re: How can I remove text in the channel [Re: hansie2010] #218531 17/02/10 12:09 AM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Re: How can I remove text in the channel [Re: Riamus2] #218537 17/02/10 01:13 AM
Joined: Feb 2010
Posts: 5
H
hansie2010 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Feb 2010
Posts: 5
No, I want to delete it in the chat room.

Re: How can I remove text in the channel [Re: hansie2010] #218538 17/02/10 01:48 AM
Joined: Mar 2004
Posts: 526
HorseC Offline
Fjord artisan
Offline
Fjord artisan
Joined: Mar 2004
Posts: 526
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.


Help others! It makes the world a better place, Makes you feel good, and makes you Healthy!
Re: How can I remove text in the channel [Re: hansie2010] #218539 17/02/10 02:17 AM
Joined: Jul 2006
Posts: 3,827
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,827
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




Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: How can I remove text in the channel [Re: Wims] #218542 17/02/10 03:40 AM
Joined: Dec 2008
Posts: 95
A
asdfasdf Offline
Babel fish
Offline
Babel fish
A
Joined: Dec 2008
Posts: 95
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

Re: How can I remove text in the channel [Re: asdfasdf] #218549 17/02/10 11:51 AM
Joined: Jul 2006
Posts: 3,827
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,827
Oops smile


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: How can I remove text in the channel [Re: asdfasdf] #218551 17/02/10 11:56 AM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Your regex's gonna get really big in length in the match text section if there are lots of words to add.