mIRC Home    About    Download    Register    News    Help

Print Thread
Hmm..possible bug? Thought I'd ask here first. #91825 26/07/04 10:50 AM
Joined: Dec 2002
Posts: 111
F
Frog Offline OP
Vogon poet
OP Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
Ok, this alias..

Code:
alias -l dsave {
  var %l 0
  while (%l < $did(Quotes,3).lines) {
    inc %l
    write -c $readini(FQuotes.ini,FQuotes,Dir)
    .timerFW. [ $+ [ %l ] ] 1 1 write $readini(FQuotes.ini,FQuotes,Dir) $did(Quotes,3,%l)
  }
}


..reads from the listbox, whose ID is 3, and writes it to the file like it's supposed to.

Now, the problem is..that alias works, completely, but if there's a $ in any of the lines of the dialog's listbox, /write tries to evaluate it..and I didn't see any switch for /write, or $did, to keep it from attempting to evaluate any possible identifiers.

Any ideas?


Experience The Void.. Are You Ready?
Re: Hmm..possible bug? Thought I'd ask here first. #91826 26/07/04 12:11 PM
Joined: Aug 2003
Posts: 19
P
Propogater Offline
Pikka bird
Offline
Pikka bird
P
Joined: Aug 2003
Posts: 19
Three ways at least to solve this,

1, remove the /timer and simply use only the /write alias
2, if you want the timer, use $eval($did(),0)
3, use /filter

Yours,


Propogater @ DALnet, #HelpDesk and #Help
Re: Hmm..possible bug? Thought I'd ask here first. #91827 26/07/04 05:07 PM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
  • alias -l dsave { savebuf -o Quotes 3 $readini(FQuotes.ini,FQuotes,Dir) }