I am using Kaspersky Antivirus, I've added mIRC to the exclusions list for all services.
I've also had:
on *:START:.timerAnti-10053 -o 0 60 scon -at1 raw -q ping Anti-10053
on ^*:PONG:if ($2 == Anti-10053) haltdef
on remote and it didn't help.
This happens to any server I connect to, and yes, it's after I connect.
I'll report back how adding it to Kaspersky exclusions and running the pingself script work.