$chat: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
fixed commenting syntax
m Reverted edit of Microbe, changed back to last version by Zyberdog
 
Line 7: Line 7:


  '''Property'''    '''Meaning'''
  '''Property'''    '''Meaning'''
  ip          ;returns the ip you connected to
  ip          returns the ip you connected to
  status      ;returns the status of the dcc chat connection
  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
  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
  stamp      returns the timestamp setting, [[$true]] or $false
  [[$wid|wid]]        ;returns the window id, numeric value
  [[$wid|wid]]        returns the window id, numeric value
  [[$cid|cid]]        ;returns the connection id it was established under
  [[$cid|cid]]        returns the connection id it was established under
  hwnd        ;returns the hwnd reference
  hwnd        returns the hwnd reference


== Example ==
== Example ==

Latest revision as of 14:05, 10 November 2005

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