$chat

From Scriptwiki
Revision as of 15:59, 10 November 2005 by Microbe (talk | contribs) (fixed commenting syntax)

Jump to: navigation, search

The $chat identifier can be used to return information about your dcc chat windows.

$chat(N/nick[,N])
  • Specifying N as 0 returns total number of dcc chat windows.
  • If both nick and N is given, it will return the information on the Nth window for that nick.
Property    Meaning
ip          ;returns the ip you connected to
status      ;returns the status of the dcc chat connection
logfile     ;returns the full path to the logfile for the dcc chat, or $false if logging is turned off
stamp       ;returns the timestamp setting, $true or $false
wid         ;returns the window id, numeric value
cid         ;returns the connection id it was established under
hwnd        ;returns the hwnd reference

Example

$chat(0)           ;returns the total number of open dcc chats
$chat(1)           ;returns the nickname of the 1st dcc chat window
$chat(2).ip        ;returns the ip address of the 2nd open dcc chat window
$chat(Dana,2).wid  ;returns the window number of the second dcc chat window with the nick Dana

See Also

  • DCC Chat - Explains how to initiate a dcc chat session
  • DCC - General information on mIRC's dcc capabilities