Project

General

Profile

$query » History » Version 2

Per Amundsen, 02/23/2023 07:18 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$query(nick|N)*
4
5
Returns the nickname of the Nth open query window.
6
7
*Parameters*
8
9 2 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| nick<notextile>|</notextile>N | A nick or If N = 0 number of open query windows, otherwise the Nth open query window. |
12 1 Per Amundsen
13
*Properties*
14
15 2 Per Amundsen
table(ktable).
16
|*Property*|*Description*|
17
| .addr | Users address in the form ident@host. |
18
| .logfile | Logfile associated with this query window. |
19
| .stamp | [[$true]] if [[/timestamp]] is enabled for this query window, otherwise [[$false]]. |
20
| .wid | Window id associated with this query window. |
21
| .cid | Connection id associated with this query window. |
22
| .hwnd | Window handle. |
23
| .idle | Number of seconds since there last was activity in this window. |
24 1 Per Amundsen
25
*Example*
26
27
<pre>
28
; Open a query window.
29
/query Example
30
31
; Print number of open query windows.
32
//echo -ag Number of open querys $query(0)
33
34
; Print information about the 'Example' query window.
35
//echo -ag $query(Example) address is $query(Example).addr
36
</pre>