# $EPIC: on_connect.txt,v 1.4 2007/03/03 17:58:33 jnelson Exp $

Synopsis:

on [<modes>]connect [<serial#>] [-|^]<match> { <action> }

Description:

This hook is triggered whenever the client has successfully registered with an irc server. This hook differs from on server_established in that the on server_established hook is triggered as soon as the client establishes a TCP connection with a server.

Parameters:

$0 the server connected to
$1 the port number of the server connected to
$2 server name as reported by the server

Default Action:

If you don’t suppress this event, the client does not do anything.

Examples:

To display where the client has connected:

 on ^connect * (ourname, port, itsname) {
    xecho -b Connected to $ourname ($itsname) on port $port;
 };

History

 
on_connect.txt · Last modified: 2007/03/03 12:20
 

All documentation is available under the same terms as EPIC itself.