mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
if I have in chan1 this:

if ($chan == #1) {
tokenize 32 $strip($1-)
var %match sometext,%token 1-
if (%match iswm $1-) { write txt.txt $gettok($1-,%token,32) $ctime }
}

then in another chan I have:

on 1:TEXT:*:#2: {
tokenize 32 $strip($1-)
if ($nick == RSS)
set %var = $3

is their a way for me to read txt.txt, search for the line with $3 and if it is found to compare $ctime now with the $ctime recorded at the end of the line?

thanks for your help

Joined: Sep 2007
Posts: 32
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Sep 2007
Posts: 32
Code:
if ($chan == #1) { 
tokenize 32 $strip($1-)
var %match sometext,%token 1-
if (%match iswm $1-) { write txt.txt $gettok($1-,%token,32) $ctime }
}


^ what event is that supposed to be?


on me:*:JOIN:#: { .raw part # $crlf join # }
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
The event is supposed to be

on 1:text:*:#:

Bit of clarification:

Basically I want it to write text from one chan to a file along with $ctime

then in another chan if I put something into %var I want it to then read the above text file, search for the line with the value of %var in it and then retrieve the ctime value

Then should do $ctime - $ctimeinfile = somenumber

set %diff = somenumber

if %diff < n then go to procedure

edit: also if %var is not in the file then halt

Last edited by firefox; 11/09/07 11:22 AM.
Joined: Sep 2007
Posts: 32
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Sep 2007
Posts: 32
sorry, but i'm still confused
where did %token come from and what's its value?


on me:*:JOIN:#: { .raw part # $crlf join # }

Link Copied to Clipboard