mIRC Home    About    Download    Register    News    Help

Print Thread
$scon(..).status and on:logon #11485 16/02/03 07:31 AM
Joined: Feb 2003
Posts: 5
T
Talyn Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Feb 2003
Posts: 5
I just noticed that with an on ^*:LOGON:*:{ commands } event, which according to the help file will trigger prior to mIRC sending the user/pass/nick stuff to the server, yet during that event $scon(1).status returns "connected". Maybe I'm missing something, but shouldn't it be "connecting" ?

As a side note, in the help file for ON LOGON the "format" and "example" line at the top omit the :target: parameter, but it is in the examples below that.

Re: $scon(..).status and on:logon #11486 16/02/03 11:49 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Technically, it's not "connecting" during on LOGON, because the tcp connection with the server is already established. $status reflects exactly this. However, it would be more useful to me if $status reported whether you are "logged in successfully" or not, or better, have another identifier that does it. I know, one could use on CONNECT and set a variable, but an identifier is cleaner.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Re: $scon(..).status and on:logon #11487 19/02/03 11:14 PM
Joined: Dec 2002
Posts: 4,894
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,894
Unfortunately all of these events and identifiers were added at different times. It would be great to re-order them and change their meanings but that would break all existing scripts shocked