Connection IDs not being sequential isn't a bug. This has been discussed in a previous thread about the issue.

It's clear from your code that it will break simply because you're using $s[color:red]con($cid).prop[/color] - ie. you're giving a connection ID to an identifier that explicitly takes a connection number (a sequential number of 1-n where n is the number of status windows). The fact that it ever worked at all was purely coincidental. As Bekar pointed out, $scid exists precisely for what you want.


Spelling mistakes, grammatical errors, and stupid comments are intentional.