mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2006
Posts: 25
L
Lymril Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Feb 2006
Posts: 25
I'd like to see some identifiers and commands added that would set/return more data in the server and messages options, e.g., group, server, port, quit message, finger message, etc. Along with these would be a pre-connect event that would run a script before mIRC started connecting to the server. This would allow a connection script to see which server/network is being connected to and set nicknames, alternates, quit messages, passwords, and so on, based on the server or network.

Also, a few identifiers for the current status of the Notify window would be nice (on/off, visible/hidden). My connection script does a /whois on NickServ before sending the password so I turn off Notify to keep its automatic /whois from confusing the connection script, then turn on Notify after the script is finished. Unfortunately, if I distribute this script that's going to turn on Notify for people who normally don't use it.

Thanks for a great IRC client. I've been a dedicated user for over ten years. smile

Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Until such time as Khaled adds your pre-connect event (presuming that he does), you might be able to use the ON START event, which runs when mIRC is started, whether it's connected or not.

As to the rest, I'll reserve comment on them until I've had a chance to read them when I'm not half-a-sleep.

Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
About the pre-connect event, check out ON LOGON in the help file.

Joined: Feb 2006
Posts: 25
L
Lymril Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Feb 2006
Posts: 25
Quote:
About the pre-connect event, check out ON LOGON in the help file.

This event might be what I was looking for. In fact, it may even obviate the need for the ON CONNECT event since ON CONNECT may or may not be triggered before Services requests my password. This guessing game has been complicating my scripts for far too long.

Thanks! smile

Joined: Apr 2005
Posts: 1,008
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
isnt LOGON after connect ?

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
depends how its used
Quote:

on ^*:LOGON:*:echo Logging on to $network $server

Triggers before mIRC sends the standard logon messages to the server. If you /halt this event, mIRC will not send the standard logon messages, allowing you to send your own messages.

on *:LOGON:*:echo Logged on to $network $server

Triggers after mIRC has sent the standard logon messages.

Joined: Feb 2006
Posts: 25
L
Lymril Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Feb 2006
Posts: 25
This confused me for a bit until I played with it. If you use the ^ at the beginning of the event it will trigger before mIRC registers onto the server. If you leave the ^ out of the event it will trigger after mIRC registers onto the server. Both ON LOGON events trigger before the ON CONNECT event triggers.

If you use the /halt command in the ^ event you'll have to supply the server with your registration data like so:

on ^*:LOGON:*: {
pass ServerPassword
user $emailaddr *.* $server $fullname
nick $mnick
}

The password line is optional for servers that don't require a password. You can find more information here.


Link Copied to Clipboard