$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, an invalid IRC context ID 0 is returned. 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. |
See also |
$window.context |