mIRC Homepage
Posted By: Wims on logon - 02/12/16 12:13 AM
There is an issue with on logon when using (at least) the toolbar button to (re)connect to server.
This Ip address 195.154.10.234 is irc.epiknet.net
In remote, put:
Code:
on ^*:logon:195.154.10.234:echo -a $server $servertarget
Add the IP in 'alt + o > connect > servers' without a group.
Click Select from the option and then Connect.
The event will trigger, which is expected to me.
So far so good, now click the toolbar button to disconnect, and click once more to reconnect, this time the event won't trigger, I believe it should still trigger.

Using
Code:
on ^*:logon:*:echo -a $server $servertarget
and eventually an if statement to check for the server name works.
Posted By: Khaled Re: on logon - 08/12/16 10:16 AM
Thanks for your bug report. The reason for this is that the on LOGON match 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. The same method is used in other features when a network name is needed. In your example, after connecting to the network, the network name is found and stored, so that is used the second time.
Posted By: Wims Re: on logon - 08/12/16 06:10 PM
I see, can you add a note in the help file about this? There is currently no chance for an user to guess what is used for that parameter
© mIRC Discussion Forums