Here's how I would do it:
alias stripfile { filter -fk $$1 _stripfile * | .copy -o stripfile.tmp $1 | .remove stripfile.tmp }
alias -l _stripfile { write stripfile.tmp $strip($1) }
Usage:
/stripfile file
eg. /stripfile mylog.txt
Warning: This will overwrite the old file.
Note that there is a mIRC option to strip off color codes while logging:
Alt-O -> IRC -> Logging -> Strip Codes (checkbox, 3rd on the left)
Edit: That's a cool feature suggestion! A filter switch that strips codes in output!
Last edited by dr_Eamer; 05/09/04 01:39 PM.