mIRC Home    About    Download    Register    News    Help

Print Thread
#101251 21/10/04 07:35 PM
Joined: Oct 2004
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Oct 2004
Posts: 3
Is it possible to strip colors from ONLY one channel and not all of them?? confused

#101252 22/10/04 02:18 AM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Sure,

create a variable in your variables list (alt+r -> variables) called %stripchans, and put the names of the channels that you want the text stripped from.

Example: %stripchans #channel1,#channel2


Then put this in your remotes (alt+r -> remote):

on ^*:TEXT:*:%stripchans: haltdef | echo -tlbfmr # $strip($1-,c)

This only strips the colors, if you want to strip all control codes, then use $strip($1-) instead.

Greets

Last edited by FiberOPtics; 22/10/04 02:20 AM.

Gone.
#101253 28/10/04 06:00 PM
Joined: Oct 2004
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Oct 2004
Posts: 3
Ok, I tried that and it did indeed strip the colors but it also made it so the nickname who was typing in color wasnt visable. Suggestions? confused

#101254 28/10/04 06:07 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Try changing:

on ^*:TEXT:*:%stripchans: haltdef | echo -tlbfmr # $strip($1-,c)

to:

on ^*:TEXT:*:%stripchans: haltdef | echo -tlbfmr # [color:red]< $+ $nick $+ > $strip($1-,c)[/color]

Hope that helps!

Regards,


Mentality/Chris
#101255 28/10/04 06:20 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Oh yeah lol, sorry I forgot to add the $nick, as Mentality showed.

Greets


Gone.
#101256 28/10/04 08:52 PM
Joined: Oct 2004
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Oct 2004
Posts: 3
Very many thanks to you both. I appreciate it. Works just how I want it now.
Thanks again! cool


Link Copied to Clipboard