Code:
on 1:TEXT:*:#:{
  .write $chan $+ log.txt $timestamp $nick $strip($1-,cb)
  .timer 1 10 remove log.txt
}

this will strip all color and bold, and will remove the file in 10 seconds.

Just in case you want to strip other stuff:
----
Quote:

$strip(text,burcmo)
Returns text with all bold, underline, reverse, and color control codes stripped out.

The burcmo parameter is optional, if used, it strips only the specified types of characters.

----

Last edited by LostServ; 09/02/05 08:25 AM.