Yawhatnever (talk | contribs) (→Parameters: changed \* to <servername>) |
(→Examples) |
||
Line 18: | Line 18: | ||
== Examples == | == Examples == | ||
Echo to the active window some information before the login information is sent, using the '''^''' prefix: | Echo to the active window some information before the login information is sent, using the '''^''' prefix: | ||
− | <source lang="mIRC">on ^*:logon:echo -a Connecting to $server through the $network network...</source> | + | <source lang="mIRC">on ^*:logon:*:echo -a Connecting to $server through the $network network...</source> |
Create a popup window which shows up after a successful connection is established: | Create a popup window which shows up after a successful connection is established: | ||
− | <source lang="mIRC">on ^*:logon:noop $input(Successfully connected to: $server $+ !,io,Connection Successful)</source> | + | <source lang="mIRC">on ^*:logon:*:noop $input(Successfully connected to: $server $+ !,io,Connection Successful)</source> |
The event above will generate a popup-window much like the one in the screenshot below: | The event above will generate a popup-window much like the one in the screenshot below: |
Revision as of 18:32, 1 December 2016
Template:mIRC Guide The ON LOGON event triggers immediately after mIRC has begun connection to a server, and has sent the standard PASS, NICK, and USER information to the server.
Note: This event can be prefixed with the ^ character to cause the event to trigger before the PASS, NICK, and USER information is sent to the server. Utilizing this ^ character, the events can even be halted, and no information sent to the server; this will most-likely cause a connection interruption, or disconnection entirely.
Synopsis
on <level>:logon:<servername>:<commands>
Parameters
<level>The level for the event to trigger.
<servername>The server name to be matched. Can also be a wildcard.
<commands>The commands to be performed when the event listener's criteria is met.
Examples
Echo to the active window some information before the login information is sent, using the ^ prefix:
on ^*:logon:*:echo -a Connecting to $server through the $network network...
Create a popup window which shows up after a successful connection is established:
on ^*:logon:*:noop $input(Successfully connected to: $server $+ !,io,Connection Successful)
The event above will generate a popup-window much like the one in the screenshot below:
Compatibility
Added: mIRC v6.03
Added on: 16 Aug 2002
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.