Project

General

Profile

On SOCKOPEN » History » Version 5

Per Amundsen, 02/24/2017 09:37 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3 2 Per Amundsen
*<notextile>on <level>:SOCKOPEN:<name>:<commands></notextile>*
4 1 Per Amundsen
5
Triggers when a [[/sockopen]] command is successful and a connection has been made.
6
7 3 Per Amundsen
_See also [[on SOCKOPEN]], [[on SOCKLISTEN]], [[on SOCKREAD]], [[on SOCKWRITE]], [[/socklisten]], [[/sockopen]], [[/sockaccept]], [[$sock]], [[$sockbr]], [[$sockerr]], [[$sockname]]._
8 1 Per Amundsen
9
*Parameters*
10
11 5 Per Amundsen
<level> - The [[User Access Level]] for the event to trigger.
12 4 Per Amundsen
<name> - The [[$sockname]] to listen to.
13 1 Per Amundsen
<commands> - The commands to be performed when the event listener's criteria is met.
14
15
<pre>
16
; Open a connection to AdiIRC.com, port 80.
17
/sockopen adiirc adiirc.com 80
18
19
on *:SOCKOPEN:adiirc:echo -ag Connection to AdiIRC successful | sockclose adiirc
20
</pre>