mIRC Home    About    Download    Register    News    Help

Print Thread
#259461 02/12/16 12:13 AM
Joined: Jul 2006
Posts: 4,145
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #259494 08/12/16 10:16 AM
Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
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.

Khaled #259495 08/12/16 06:10 PM
Joined: Jul 2006
Posts: 4,145
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard