# $context

Retrieves the ID of the specified IRC context

Usage

    $context[(<server>,<nickname>)]

Description

Returns the IRC context ID of the IRC context that uses the specified <server> and local user's <nickname>.
This function can find only connected IRC contexts. If no context matches the server and nickname, and invalid IRC context ID is returned (0).
If <server> is an empty string, the first context that matches the specified nickname is returned. If <nickname> is an empty string, the first context that uses the specified server is returned. If both parameters are missing this function returns the id of the current IRC context, or '0' if the window that this call is executed in is not bound to any IRC context. Please note that in this last case you may find an IRC context that is 'not connected'. This can only happen if the current window is a console that is in the "idle" state, with no connection established yet.
It is a good idea to take a look at the window naming conventions.

Syntax Specification

    $context[(<server>,<nickname>)]

See also
$window.context

Index, Functions

KVIrc 4.2.0.6190 Documentation
Generated by root at Mon Jul 22 18:18:08 2013