Added in 1.9.2
$activecid
Returns the server connection id for the current active window.
See also $lactivecid, $active, $lactive, $activewid, $lactivewid. on ACTIVE.
Example
on *:ACTIVE:*:echo current active cid is $activecid last active cid was $lactivecid