Difference between revisions of "$chat"
From Scriptwiki
(fixed commenting syntax) |
m (Reverted edit of Microbe, changed back to last version by Zyberdog) |
||
Line 7: | Line 7: | ||
'''Property''' '''Meaning''' | '''Property''' '''Meaning''' | ||
− | ip | + | ip returns the ip you connected to |
− | status | + | status returns the status of the dcc chat connection |
− | logfile | + | logfile returns the full path to the logfile for the dcc chat, or [[$false]] if logging is turned off |
− | stamp | + | stamp returns the timestamp setting, [[$true]] or $false |
− | [[$wid|wid]] | + | [[$wid|wid]] returns the window id, numeric value |
− | [[$cid|cid]] | + | [[$cid|cid]] returns the connection id it was established under |
− | hwnd | + | hwnd returns the hwnd reference |
== Example == | == Example == |
Latest revision as of 15: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