mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
I am trying to make some scripts a bit more usable, by striping colours so they can be used with a little bit less fuss.
However, I'm not at all enjoying (I know it's not meant to be enjoyable) reading through a script and working out where the $strip($1)'s need to go.

Is it possible, to have a bit at the beginning or something similar that will strip all the text before putting it through the rest of the script?

Thank you for any replies. smile

Joined: Aug 2006
Posts: 183
T
Vogon poet
Offline
Vogon poet
T
Joined: Aug 2006
Posts: 183
It would depend on the script, I suppose. If its fairly simple, using $strip($1-) ought to do what you want it to do.


Yar
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
If you are talking about a onTEXT (or similar) event, you can add this as the first line inside the event:

tokenize 32 $strip($1-)

-genius_at_work

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
If you have an ON START event in the script, you could just add
Code:
.strip +c
to the event.
See /help /strip


Link Copied to Clipboard