mIRC Home    About    Download    Register    News    Help

Print Thread
#110596 08/02/05 06:55 PM
P
p00kie
p00kie
P
I would like to know how to be able to grab what someone is saying in a channeland then output it to a text file in the local directory
and then ftp that text file right after.. And this is all put under an alias. So the logging will be under remotes and the uploading with be under an alias. And also i want the logging to be something like an xdcc catcher so that it does not record everything my iroffer bot says but just the pack listings.

#110597 09/02/05 05:45 AM
H
Ho0tz04
Ho0tz04
H
on 1:TEXT:*:#:{
/write $chan $+ log.txt $timestamp $nick $1-
}

The ftp part sorry i can't help there, but the code about should work to log the text.

#110598 09/02/05 08:15 AM
P
p00kie
p00kie
P

Thanks a lot bu do you know how to
1. parse out the colors or any bold fonts
2. delete the file after it's created.

#110599 09/02/05 08:22 AM
Joined: Mar 2004
Posts: 358
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 358
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.

Link Copied to Clipboard