count connected servers - 29/06/09 06:12 PM
if //echo -a $scon(0) gives how many opened server windows there are, what is to show on how many connected servers user actualy is ?
example: /sc_chk alias sc_chk { var %sc = 1 while ($scon(%sc)) { if ($scon(%sc).status = connected) echo -s $scon(%sc).mnick is connected to $scon(%sc).network on connection %sc . inc %sc } }
example: /sc_chk alias sc_chk { var %sc = 1, %sx while ($scon(%sc)) { if ($scon(%sc).status = connected) inc %sx inc %sc } echo -a %sx of your $scon(0) connections are connected. }
; $connectedcount = N of server windows with status "connected". alias connectedcount { var %n = 0 scon -at1 inc % $+ n return %n }
alias connectedcount { var %n = 0 scon -a if ($status == connected) inc % $+ n return %n }