mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2010
Posts: 5
H
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?

Joined: Mar 2004
Posts: 526
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!
Joined: Oct 2004
Posts: 8,330
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
Joined: Feb 2010
Posts: 5
H
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
H
Joined: Feb 2010
Posts: 5
No, I want to delete it in the chat room.

Joined: Mar 2004
Posts: 526
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!
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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




#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2008
Posts: 95
A
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

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Oops smile


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jul 2007
Posts: 1,129
T
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.


Link Copied to Clipboard