Play with the settings under Alt+O > Connect > Local, aka the /localinfo -[u|h] command. You might not be able to prevent this information from displaying upon connect. There are a number of non-halting outputs intended to preserve sanity for users.
On Connect starts after 001 or 005 or there about. You can write your own script to figure that out while viewing the @debug window.
On *:Connect: echo @debug ON CONNECT!