mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 580
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
/scon doesn't produce the correct error messages when specifing and invalid 'con'.

Try this: /scon 32000 echo -s Test

6.16's error: * No such connection id: 31998
6.17's error: * No such connection id: 31999

From mIRC help:
Quote:
The /scon command works in exactly the same way, except that N represents the Nth connection, not a connection id value.


Error should read more like: * No such connection: 32000
Correct number specified in error and since that number is NOT a connection id, remove "id".


NaquadaBomb
www.mirc-dll.com
Joined: Oct 2003
Posts: 214
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
If you are on 5 networks mIRC will return 31995 and so on
The reply between 6.16 and 6.17 isn't different.

It seems, mIRC calculates N - Number of open Status Window's.
(the reply depends on the input, /scon 15 returns 10 with 5 Status Windows)

Quickfix:
Code:
scon {
  !.scon $$1-
  goto end
  :error
  reseterror
  echo $color(info) -a * No such connection: $1
  :end
}


* Note: Also mIRC seems not to see this as an errormsg (6.16 and 6.17) so it won't hide the default output.


one step closer to world domination
Joined: Dec 2002
Posts: 580
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Quote:
If you are on 5 networks mIRC will return 31995 and so on
The reply between 6.16 and 6.17 isn't different.


Good eye. smile


NaquadaBomb
www.mirc-dll.com
Joined: Dec 2002
Posts: 580
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
I've noticed additional bugs with large numbers (when there are converted to int)... Note: these tests were run with only one status window.

* Zero for con value is considered valid.

* "/scon 2147483649" up to "/scon 4294967297" is considered valid.

* "/scon 4294967298" returns the error "No such connection id: 1" - hehe... wink

Khaled, Are you using signed or unsigned intergers for CID? Looks like the problem might be with a signed interger being casted to unsigned interger. smile


NaquadaBomb
www.mirc-dll.com

Link Copied to Clipboard