_Added in 1.9.0_ *$query(nick|N)* Returns the nickname of the Nth open query window. *Parameters* table(ktable). |*Parameter*|*Description*| | nick|N | A nick or If N = 0 number of open query windows, otherwise the Nth open query window. | *Properties* table(ktable). |*Property*|*Description*| | .addr | Users address in the form ident@host. | | .logfile | Logfile associated with this query window. | | .stamp | [[$true]] if [[/timestamp]] is enabled for this query window, otherwise [[$false]]. | | .wid | Window id associated with this query window. | | .cid | Connection id associated with this query window. | | .hwnd | Window handle. | | .idle | Number of seconds since there last was activity in this window. | *Example*
; Open a query window.
/query Example

; Print number of open query windows.
//echo -ag Number of open querys $query(0)

; Print information about the 'Example' query window.
//echo -ag $query(Example) address is $query(Example).addr