I will update this alot if i can get some suggestions from people, i'm new here so feedback is appriciated.
Syntax: /statsme
Example:
(This will all be displayed with the echo command.)
[ Statsme v0.1 by Cldz @ #CSCups on QNet. ]
[ You are in 8 channels, @Oped in 2. ]
[ You have control over 38 users in 2 channels. ]
[ You are currently connected to 1870 users on blueyonder1.uk.quakenet.org. ]
- Code: Select all
alias statsme {
if (!$server) { echo -a You're not connected to a server $me $+ . }
else {
getvars
echo -a 7[1 Statsme v0.1 by Cldz @ #CSCups on QNet. 7]
echo -a 7[1 You are in $chan(0) channels, @Oped in %oped $+ . 7]
echo -a 7[1 You have control over %ctrl users in %oped channels. 7]
echo -a 7[1 You are currently connected to %users users on $server $+ . 7]
clearvars
}
}
alias getvars {
set %x $chan(0)
while (%x) {
inc %users $nick($chan(%x),0)
if ($me isop $chan(%x)) {
inc %oped
inc %ctrl $nick($chan(%x),0)
dec %x
}
else {
dec %x
}
}
}
alias clearvars {
unset %oped
unset %voiced
unset %users
unset %ctrl
}