Counts how many channels you are OP of. Just use /count.
/*
How many channels you are OP of
Written by: Siddhant Sutar
Email: siddhantsutar@yahoo.com
IRC: irc.DuelZone.org/irc.netstable.net
*/
alias count {
var %a $chan(0)
var %b 1
var %c 0
while ($me isop $chan(%b)) {
inc %c $nick($chan(%b),0)
inc %b 1
}
msg $chan 렉'm opped in %b out of %a channels, watching over %c different users. 덊 }
}
First of all, you've failed to define what you mean by "odd."
There is nothing wrong with the example you provided there, but the script you provided sounds odd.
Now you're being odd for writing this line.
Lastly, I didn't fail my English class. I'm college-educated. Wait a minute, what does that have to do with this matter at hand? :/
@GoldFish: "/ns alist" will only work on networks running services such as Anope with "include aliases/aliases.conf" or something similar in the unrealircd.conf (or other IRCd conf files).
@Jethro_: I don't know if this is because I use mIRC 7.05, but:
<@Artemis_Fowl> I'm opped in #Chipz #pandemic #RageQuit #Retribution #Xenom out of 10 channels, watching over 118 users.
UrZTruly, your script doesn't give out correct information.
This is what I'd do if I were you:
alias -l total {
var %x 1, %i | while $comchan($me,%x) {
%i = $calc(%i + $nick($v1,0)) | inc %x } | return %i
}
alias count {
var %x $regsubex($str(.,$chan(0)),/./g,$iif($me isop $chan(\n),$v2) $chr(32))
msg # I'm opped in %x out of $chan(0) channels, watching over $total users.
}