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:
#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