On SOCKOPEN » History » Revision 4
Revision 3 (Per Amundsen, 11/19/2015 10:26 AM) → Revision 4/5 (Per Amundsen, 11/19/2015 01:35 PM)
_Added in 1.9.0_
*<notextile>on <level>:SOCKOPEN:<name>:<commands></notextile>*
Triggers when a [[/sockopen]] command is successful and a connection has been made.
_See also [[on SOCKOPEN]], [[on SOCKLISTEN]], [[on SOCKREAD]], [[on SOCKWRITE]], [[/socklisten]], [[/sockopen]], [[/sockaccept]], [[$sock]], [[$sockbr]], [[$sockerr]], [[$sockname]]._
*Parameters*
<level> - The level for the event to trigger.
<name> - The [[$sockname]] to listen to.
<commands> - The commands to be performed when the event listener's criteria is met.
<pre>
; Open a connection to AdiIRC.com, port 80.
/sockopen adiirc adiirc.com 80
on *:SOCKOPEN:adiirc:echo -ag Connection to AdiIRC successful | sockclose adiirc
</pre>