mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2012
Posts: 53
J
Babel fish
OP Offline
Babel fish
J
Joined: Jan 2012
Posts: 53
I have a friend who has a severe dislike of italics in the newer mirc. I think he's crazy.

Is it possible to write a simple script to ignore italics? Or is there an option I'm not seeing that only blocks italics.

Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
Well there is an option to strip color and stuff but that's not you're looking for.

You'd need an on text event that removes all italics, like so.

on ^*:text:* *:#: echo $color(normal) -mt $chan $+(<,,$nick($chan,$nick).color,$iif($left($nick($chan,$nick).pnick,1) isin $prefix,$v1),$nick,>) $remove($1-, )

Have your friend try that out and tell him I think he's crazy also, lol.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
You could use $strip($1-,i) instead of $remove().

Joined: Jan 2012
Posts: 53
J
Babel fish
OP Offline
Babel fish
J
Joined: Jan 2012
Posts: 53
Sadly I tested it myself and it did not work.

Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
Did you test it yourself by typing it in mirc where the script was loaded? Because it doesn't work when you type it yourself.

Joined: Jan 2012
Posts: 53
J
Babel fish
OP Offline
Babel fish
J
Joined: Jan 2012
Posts: 53
I have two mirc clients running. (One is a dice bot, long story). I loaded it on the dice bot and typed in message and in channel to it using italics and it saw the italics.

Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
Did you load it in a script file or the remotes section where there was already and on ^*:text: event by chance?

I tested it and it worked for me or I wouldn't have posted it.

Joined: Jan 2012
Posts: 53
J
Babel fish
OP Offline
Babel fish
J
Joined: Jan 2012
Posts: 53
I did. It's a dice bot, and the person that I was asking for also said it didn't work for him.


Link Copied to Clipboard