Well, here's a few changes smile

Code:
alias Quer if (!$window(@Quer)) { window -deSl11k0 @Quer 245 250 594 266 }

^ Doesn't even really need that if, unless you want to prevent it re-positionng itself

Quote:
savebuf -a 1-$line(@Quer,0) @Quer QuerLogs\Quer. $+ $sline(@Quer,1) $+ .txt

-a will add al of the windows buffer to the logfile. :tongue: (well it would except for 1-$line(@Quer,0) won;t work like that.) Needs to be $+(1-,$line(@Quer,0))
Why not just /write the line to the file?

Code:
    /*
    if ($fline(@Quer,$nick,0,1)) {
      return
    }
    elseif (!$fline(@Quer,$nick,0,1)) {
      aline -l @Quer $nick 
    }
    [color:green]Don't need that ^, Just use[/color]
    */
    aline -l[color:red]n[/color] @Quer $nick


You don't need that else in the text event. (Nor a text event seeing as you immediately close the window smile)
Code:
on ^*:[color:blue]open[/color]:?:{
  mkdir QuerLogs
  write $+(QuerLogs\Quer.,$nick,.txt [,$time(HH:nn),] <,$nick,>) $1-
  quer
  savebuf -a $+(1-,$line(@Quer,0)) @Quer QuerLogs\Quer. $+ $sline(@Quer,1) $+ .txt
  aline -ln @Quer $nick
  [color:blue]halt[/color]
}


Code:
alias quer.msg {
  if ($sline(@Quer,0) == 1) {
    if ($input(Secure Send $+(Message,$crlf,Send this message to $!sline(@Quer,1),?,$crlf,$crlf,$1-),c,Send Message.)) {
      PRIVMSG $sline(@Quer,1) $1-
      aline -p @Quer $+([,$time(HH:nn),] <,$me,>) $1-
      write $+(QuerLogs\Quer.,$sline(@Quer,1),.txt) $+([,$time(HH:nn),] <,$me,>) $1-
      ; writing the single line rather than adding the entire buffer to the file (again)
    }
    else { editbox @Quer $1- }
  }
}