mIRC Home    About    Download    Register    News    Help

Print Thread
alas, what has 6.1 done #46817 03/09/03 08:18 AM
Joined: May 2003
Posts: 26
T
tim_shady1 Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: May 2003
Posts: 26
ok, ive got a sample here which goes through a txt file looking for a line, if that line exists, it halts, otherwise, it writes it to the text file.

Code:
alias listcheck {
  if ( $read(away.txt, s, $1-) ) {
    halt
  }
  else {
    write away.txt $1-
  }
}


this worked fine in 5.91 .. then i upgraded to 6.1 now it just seems to write to the file no matter what, ive checked the read me, and everything seems to be in order.

got any ideas ?

Re: alas, what has 6.1 done #46818 03/09/03 08:29 AM
Joined: Dec 2002
Posts: 124
B
bloupx Offline
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
alias listcheck {
if ($read(away.txt, w, $1-)) halt
else write away.txt $1-
}

that'll do what you want.

Re: alas, what has 6.1 done #46819 03/09/03 08:39 PM
Joined: May 2003
Posts: 26
T
tim_shady1 Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: May 2003
Posts: 26
cool, thanks smile