From WikiChip
Difference between revisions of "mirc/on events/on connect"
m (Bot: Adding a template (template:mIRC on event list)) |
m (Bot: Fixing links) |
||
Line 32: | Line 32: | ||
* [[On connectfail - mIRC|ON CONNECTFAIL]] | * [[On connectfail - mIRC|ON CONNECTFAIL]] | ||
* [[On disconnect - mIRC|ON DISCONNECT]] | * [[On disconnect - mIRC|ON DISCONNECT]] | ||
− | * | + | * {{mIRC|$network}} |
− | * | + | * {{mIRC|$server}} |
{{mIRC on event list}} | {{mIRC on event list}} | ||
[[Category:MIRC on events]] | [[Category:MIRC on events]] |
Revision as of 20:04, 5 July 2014
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 level for the event to trigger.
<commands>The commands to be performed when the event listener's criteria is met.
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/02/95
See Also
mIRC on event list