mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 20
H
hatch Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 20
Hi board!

I cannot figure out, how to prevent the first line of an incoming query from being displayed. Instead I want to echo some status messages first - before the incoming line is displayed.
My goal is, to display some whois information from the user who queried me at the top of the query buffer.
I already tried to haltdef on open event, get the data and finally reopen a query to the user, but that did not work at all (no query appeared).
This is how far I am at the moment:
Code:
#qam_whois off

;...Some code to receive the whois results here...

;End of whois
raw 318:*:{
  [color:red].disable #qam_open
  query %qam_nick
  echo $color(info2) -t %qam_nick * %some_info
  echo %qam_nick %qam_msg
  .enable #qam_open[/color]
  unset %qam_msg
  unset %qam_nick
  .disable #qam_whois
  haltdef
}

#qam_whois end

#qam_open on

on ^1:open:?:*:{
  .enable #qam_whois
  set %qam_nick $nick
  set %qam_msg $1-
  haltdef
}

#qam_open end

The red marked lines show the code to reopen the query window and put the lines in the order I want them to appear.

Thanks for your help!
--hatch


__________________
"Who cares. Out of sight, out of mind."
Joined: Jan 2003
Posts: 20
H
hatch Offline OP
Ameglian cow
OP Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 20
Sorry, I did not remember the /clear command. Easy after all - holding me up for hours wink. This is the working code:
Code:
[color:red]  clear %qam_nick
  echo $color(info2) -t %qam_nick * %qam_nick is on %qam_chan_tok_new
  echo %qam_nick $asctime( $timestampfmt ) $+( <, %qam_nick, > ) %qam_msg[/color]


__________________
"Who cares. Out of sight, out of mind."

Link Copied to Clipboard