Chanstats - 24/04/05 06:48 PM
Hi, i need a script that tells how many channels im in, in how many networks and how many queries ive got open.
alias stats { echo -a You are on $iif($chan(0) < 1,no,$chan(0)) channels. echo -a You have $iif($query(0) < 1,no,$query(0)) query windows open. var %x = $scon(0) while (%x) { if ($scon(%x).status = connected) { echo -a You have $scon(0) Status Windows open $scon(%x) of which you are connected to. | halt } dec %x } }
alias stats { echo -a You are on $iif($lines(chanstats.txt) < 1,no,$v1) channels echo -a You have $iif($lines(querystats.txt) < 1,no,$v1) query windows var %x = $scon(0) while (%x) { if ($scon(%x).status == connected) { echo -a You have $scon(0) Status Windows open $scon(%x) of which you are connected to. | halt } dec %x } } on 1:OPEN:?:*: { if (!$read(querystats.txt,w,$nick)) write querystats.txt $nick } On *:Close:?: { if ($read(querytats.txt,w,$target)) { write -dw $+(",$target,") querystats.txt } } On me:*:Join:#: { if (!$read(chanstats.txt,w,$chan)) write chanstats.txt $chan } On me:*:Part:#: { if ($read(chanstats.txt,w,$chan)) { } }
alias chanquerynet { var %a = 0, %b = 0 scon -a if ($query(0)) inc $(%a |,) if ($chan(0)) inc % $+ b echo -a Total queries: %a ** Total chans: %b ** Total server windows: $scon(0) }
alias chanquerynet { var %a = 0, %b = 0 scon -a if ($query(0)) inc $(%a |,) if ($chan(0)) inc % $+ b echo -a Total queries: %a ** Total chans: %b ** Total server windows: $scon(0) }
alias chanquerynet { var %a = 0, %b = 0 scon -a if ($query(0)) inc $(%a $v1 |,) if ($chan(0)) inc $(%b $v1,) echo -a Total queries: %a ** Total chans: %b ** Total server windows: $scon(0) }