From WikiChip
On Connect - Events - mIRC
< mirc‎ | on events
Revision as of 19:12, 15 June 2017 by ChippyBot (talk | contribs) (Bot: adding missing title)

The ON CONNECT event triggers when mIRC has successfully connected to an IRC server and that IRC server has displayed its MOTD.

Synopsis

ON <level>:CONNECT:<commands>

Parameters

  • <level> - The corresponding access levels for the event to trigger.
  • <commands> - The commands to be performed when the event triggers

Examples

; Echo the server and network
; names to the active window
ON *:CONNECT:echo -a Server: $server -- Network: $network

If a successful connection is made to an IRC server, the above code will display something similar to the below example:

Server: chicago.il.us.undernet.org -- Network: UnderNet
; Join a single channel,
; #myChannel, upon successful connection
 
ON *:CONNECT:join #myChannel

When a successful connection is made to a server, mIRC will now join the channel #myChannel.

Compatibility

Added: mIRC v2.1a
Added on: 28 Feb 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also