From WikiChip
Editing mirc/on events/on logon

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|On Logon - Events}}
 
 
The '''ON LOGON''' event triggers immediately after mIRC has begun connection to a server, and has sent the standard [[Pass - IRC|PASS]], [[Nick - IRC|NICK]], and [[User - IRC|USER]] information to the server.
 
The '''ON LOGON''' event triggers immediately after mIRC has begun connection to a server, and has sent the standard [[Pass - IRC|PASS]], [[Nick - IRC|NICK]], and [[User - IRC|USER]] information to the server.
  
'''Note:''' This event can be prefixed with the '''^''' character to cause the event to trigger ''before'' the [[Pass - IRC|PASS]], [[Nick - IRC|NICK]], and [[User - IRC|USER]] information is sent to the server. Utilizing this '''^''' character, the events can even be {{mIRC|/halt}}ed, and no information sent to the server; this will most-likely cause a connection interruption, or disconnection entirely.
+
'''Note:''' This event can be prefixed with the '''^''' character to cause the event to trigger ''before'' the [[Pass - IRC|PASS]], [[Nick - IRC|NICK]], and [[User - IRC|USER]] information is sent to the server. Utilizing this '''^''' character, the events can even be [[/halt command - mIRC|halted]], and no information sent to the server; this will most-likely cause a connection interruption, or disconnection entirely.
  
 
== Synopsis ==
 
== Synopsis ==
<source lang="mIRC">
+
<pre>ON <level>:LOGON:*:<commands></pre>
on <level>:logon:<servername>:<commands>
 
</source>
 
  
 
== Parameters ==
 
== Parameters ==
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The corresponding {{mIRC|access levels}} for the event to trigger.
+
<span style="display: inline-block; width: 105px;">'''<level>'''</span>The level for the event to trigger.
  
<span style="display: inline-block; width: 105px;">'''<servername>'''</span>this parameter is based on the network name. If a network name cannot be found, it uses the group name, and if that cannot be found, it uses the server address as a last resort. Can be a {{mirc|wildcard}}. The order is important, for example if you use an ip address for this parameter and connect the first time, it will trigger, but mIRC will associate a network value and the network will be used next time, which wouldn't match the ip address, you can use * for this parameter and handle {{mIRC|$servertarget}} to tie the event to a specific server target value.
+
<span style="display: inline-block; width: 105px;">'''*'''</span>The server name to be matched. Can also be a [[wildcard]].
  
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met.
Line 18: Line 15:
 
== 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:
Line 28: Line 25:
  
 
== Compatibility ==
 
== Compatibility ==
{{mIRC compatibility|6.03}}
+
Added: mIRC v6.03
 +
 
 +
Added On: 16/08/2002
  
 
== See Also ==
 
== See Also ==
Line 39: Line 38:
 
{{mIRC on event list}}
 
{{mIRC on event list}}
  
[[Category:mIRC on events|logon]]
+
[[Category:MIRC on events]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)