m (Bot: Adding a template (template:mIRC on event list)) |
m (Bot: Fixing links) |
||
Line 28: | Line 28: | ||
* [[On sockread - mIRC|ON SOCKREAD]] | * [[On sockread - mIRC|ON SOCKREAD]] | ||
* [[On sockwrite - mIRC|ON SOCKWRITE]] | * [[On sockwrite - mIRC|ON SOCKWRITE]] | ||
− | * | + | * {{mIRC|/sockaccept}} |
− | * | + | * {{mIRC|/socklist}} |
− | * | + | * {{mIRC|/sockmark}} |
− | * | + | * {{mIRC|/sockopen}} |
− | * | + | * {{mIRC|/sockpause}} |
− | * | + | * {{mIRC|/sockread}} |
− | * | + | * {{mIRC|/sockrename}} |
− | * | + | * {{mIRC|/sockudp}} |
− | * | + | * {{mIRC|/sockwrite}} |
* [[$sock identifier - mIRC|$sock]] | * [[$sock identifier - mIRC|$sock]] | ||
{{mIRC on event list}} | {{mIRC on event list}} | ||
[[Category:MIRC on events]] | [[Category:MIRC on events]] |
Revision as of 19:11, 5 July 2014
The ON SOCKCLOSE event triggers when a socket connection is closed by the remote connection, not by the local mIRC client closing the connection.
Synopsis
ON <level>:SOCKCLOSE:<name>:<commands>
Parameters
<level>The level for the event to trigger.
<matchtext>The name of the target socket. Can be a wildcard.
<commands>The commands to be performed when the event listener's criteria is met.
Example
When the socket closes, echo that the socket has closed and some details about it to the active window:
ON *:SOCKCLOSE:*: { echo -a ::=> $socketname Connection to $socket($socketname).ip on port $socket($socketname).port terminated! }
Compatibility
Added: mIRC v6.14
Added On: 03/03/2004
See Also
- Sockets
- ON SOCKLISTEN
- ON SOCKOPEN
- ON SOCKREAD
- ON SOCKWRITE
- /sockaccept
- /socklist
- /sockmark
- /sockopen
- /sockpause
- /sockread
- /sockrename
- /sockudp
- /sockwrite
- $sock
A on Action, on Active, on Agent, on Appactive B on Ban C on Char, on Chat, on Chatclose, on Chatopen, on Close, on Connect, on Connectfail, on Ctcpreply D on Dccserver, on Dehelp, on Deop, on Deowner, on Devoice, on Dialog, on Disconnect, on Dns |
J on Join K on Keydown, on Keyup, on Kick M on Midiend, on Mode, on Mp3end |
Q on Queryclose, on Queryopen, on Quit S on Sendfail, on Serv, on Servclose, on Servermode, on Serverop, on Servopen, on Signal, on Snotice, on Sockclose, on Socklisten, on Sockopen, on Sockread, on Sockwrite, on Start U on Udpread, on Udpwrite, on Unban, on Unload, on Unotify, on Usermode |