On logon
Jump to navigation
Jump to search
The on LOGON event triggers before and after mIRC sends the standard PASS, NICK, and USER messages to the server.
on <level>:LOGON:*:<commands>
Note that you can use ^ to execute commands just before mIRC sends the standard messages.
Example
on ^*:LOGON:*: {
echo -a Logging on to $network $server
}
This triggers before mIRC sends the standard messages and echos it to the active window.
on *:LOGON:*: {
echo -a Logged on to $network $server
}
This triggers right after mIRC sends the standard messages and echos it to the active window.
You can use this to open a debug window right before you connect.
on ^*:logon:*:{
; echo with timestamp and corrent window to the status window
!echo -sct info * Connected to $serverip ( $+ $port $+ )
; open a new window called @debug<cid here> and write /.!quote to it
!window -nvE @debug $+ $cid /.!quote
; Outputs raw server messages, both incoming and outgoing, to @debug window.
!.debug -ntp @debug $+ $cid
}