on ^*:LOGON:*:{
on *:LOGON:*:{
is what you need, add $server and $port in