View Full Version : IRC -> TXT file....
[JA]JEnKiNs
11-07-2001, 17:30
Hiiiihihi..
Can anyone help mee? ;(
What i need to do is get IRC to plonk out what its doing to a txt file, at the same time as its putting it on screen...
It has to be completely free of all the usual [:12:00]:: |11wadas |12,3sdswad formatting...
Any ideas / pointers please?
Tankjoo.
:)
(I know about the logging feature, but i need it clearer than that, and txt file'd not .log'd.)
on *:text:*:#: write wasd.txt $chan : $1-
on *:text:*:?: write wasd.txt $nick : $1-
Might do it
/me tests it now....
on *:text:*:*: write wasd.txt $chan / $nick : $strip($1-)
on *:join:#: write wasd.txt Join / $chan / $nick
on *:quit: write wasd.txt Quit / $nick : $strip($1-)
on *:action:*:*: write wasd.txt Action / $chan / $nick : $strip($1-)
on *:part:#: write wasd.txt Part / $chan / $nick
on *:ban:#: write wasd.txt Ban / $chan / $nick
on *:kick:# write wasd.txt Kick / $chan / $nick
on *:nick: write wasd.txt Nick / $nick --> $newnick
on *:topic:#: write wasd.txt Topic / $nick / $strip($1-)
on *:voice:#: write wasd.txt Voice / $chan / $nick -- $vnick
on *:devoice:#: write wasd.txt Devoice / $chan / $nick -- $vnick
on *:op:#: write wasd.txt Op / $chan / $nick -- $opnick
on *:deop:# write wasd.txt Deop / $chan / $nick -- $opnick/ $strip($1-)
:eek:
I bet you want it for individual chans / privs, but I need to go now so you can work that out yourself.....
LIES!!111111
we want it for saaaaaaaing much evvvvleer than that monkee ;p
cheers alot tho m8, nicely done. Jenks'll test that soon im sure
init jenks :D
:DD
:Ddddd
GameGuru
12-07-2001, 16:54
I don't see any problem with the standard mIRC logging routine :)
Just tell it to strip codes and its a nice and clean log file.
If it bothers you hugely about the file extension then just rename them to text files. Saves poor andy having to write long winded scripts :E
WOT WE NED IS A SKIRPT TO CONVART LOG PHILES 2 TEXT PHILES!11111
I've done similar before when converting 50 odd files to zip's, but they all had common naming conventions like file1, file2... file45 so it was easy. But mIRC log files are a different story
/me looks at the file names again
/me ponders
/dies
Tada.
/l2t {
run command.com /C dir /b logs > dirlist.txt
echo Starting
var %staller = $?="Just wasting your time for a sec while the dirlist is created. You can press Ok now."
var %filelen
var %target
var %currentline = 1
:start
if ( $read -l $+ [ %currentline ] dirlist.txt == $null ) { echo Finished | return }
else {
%filelen = $calc($len($read -l $+ [ %currentline ] dirlist.txt) - 3)
%target = $left($read -l $+ [ %currentline ] dirlist.txt,%filelen)
rename logs\ $+ [ $read -l $+ [ %currentline ] dirlist.txt ] logs\ $+ %target $+ txt
inc %currentline
goto start
}
}
:E
Ok, that should convert ANY file in logs\ to ~whatever~.txt. It's an alias so press ALT + A then paste it in there. Then call it with /l2t (log to text).
That's about it.
EDIT: If you are running NT4 / win2k, then I *think* you will need to change the line "run command.com /C dir /b logs > dirlist.txt" to "cmd.exe /C dir /b logs > dirlist.txt"
And I hope your logs are in logs\ ;)
Andy
[Edited by ybw on 12-07-2001 at 07:48 PM]
GameGuru
13-07-2001, 01:23
hurrah for Alias Andy :)
Thanks ybw, nice work mate.
Ill let you know what its for when we've ( me and Jenks ) have seen if it works ;)
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.