mIRC Home    About    Download    Register    News    Help

Print Thread
mIRC Log Code Stripper #120674 20/05/05 05:37 PM
Joined: May 2005
Posts: 1
D
Datsund Offline OP
Mostly harmless
OP Offline
Mostly harmless
D
Joined: May 2005
Posts: 1
I hope somebody can help me.

I recently downloaded a statistics program (mircstats), which analyzes mIRC logs, and outputs various statistics onto a html page. This software requires all logs to be stripped of code, however the older logs I have for the channel in question contain code.

Can anybody tell me of a good way to strip older logs of code? I would really like to add my older logs to the new ones, so that previous chat can be included in the statistics.

I have tried searching google for 'Code stripper for mIRC' and others, but no luck so far.

Thankyou.

Re: mIRC Log Code Stripper #120675 20/05/05 05:55 PM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
I remember doing something like this ages ago with a custom window, $strip, $read and some other things to output the log intact but void of all formatting. I dont remember the exact coding, but that should give you an idea how to script one if that's what you'd like to do


Those who fail history are doomed to repeat it
Re: mIRC Log Code Stripper #120676 20/05/05 05:56 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
You could try something like this:

Code:
alias removecode {
  if ($1 && $2) {
    set %cnt 1
    while (%cnt <= $lines($1)) {
      write $2 $strip($read($1,%cnt))
      inc %cnt
    }
  }
  unset %cnt
}


Usage:

/removecode logfilename.txt newfilename.txt

Note: If you have spaces in the filename or the path (if used), then put quotes around the filenames/paths.

Example:

/removecode "c:\program files\mirc\logs\log1.txt" "c:\program files\mirc\logs\newlog1.txt"

or

/removecode "logs\my log.txt" "logs\my new log.txt"


Invision Support
#Invision on irc.irchighway.net
Re: mIRC Log Code Stripper #120677 20/05/05 06:44 PM
Joined: Apr 2005
Posts: 18
B
BarGarth Offline
Pikka bird
Offline
Pikka bird
B
Joined: Apr 2005
Posts: 18
Try filter...

Code:
  
/filter -bcff filename.log filename.log