$query » History » Version 1
Per Amundsen, 08/11/2015 06:03 AM
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 | nick|N - A nick or If N = 0 number of open query windows, otherwise the Nth open query window. |
||
10 | |||
11 | *Properties* |
||
12 | |||
13 | .addr - Users address in the form ident@host. |
||
14 | .logfile - Logfile associated with this query window. |
||
15 | .stamp - [[$true]] if [[/timestamp]] is enabled for this query window, otherwise [[$false]]. |
||
16 | .wid - Window id associated with this query window. |
||
17 | .cid - Connection id associated with this query window. |
||
18 | .hwnd - Window handle. |
||
19 | .idle - Number of seconds since there last was activity in this window. |
||
20 | |||
21 | *Example* |
||
22 | |||
23 | <pre> |
||
24 | ; Open a query window. |
||
25 | /query Example |
||
26 | |||
27 | ; Print number of open query windows. |
||
28 | //echo -ag Number of open querys $query(0) |
||
29 | |||
30 | ; Print information about the 'Example' query window. |
||
31 | //echo -ag $query(Example) address is $query(Example).addr |
||
32 | </pre> |