How many channels you are OP of.

By Siddhant on Nov 24, 2007

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. 덊  }
}

Comments

Sign in to comment.
GoldFish   -  Jun 21, 2010

:| GlobalAnomaly: I know Artemis_Fowl! Is that on the purplesurge network??

 Respond  
UrZTruly   -  Jun 19, 2010

How do u Add you corrections to the Posted comments with the Quote box ?

 Respond  
Jethro   -  Jun 19, 2010

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? :/

 Respond  
GlobalAnomaly   -  Jun 19, 2010

I think somebody has failed English class in the past, hmm? There is nothing wrong with the example you provided there, but the script you provided sounds odd.

 Respond  
Jethro   -  Jun 19, 2010

Would this sentence be odd to you: > 5 out of 10 people have suffered a bad case of diarrhea.If not, there's nothing odd of my example.

 Respond  
GlobalAnomaly   -  Jun 19, 2010

It just looks odd to see "I am opped in out of channels. Wouldn't it look better to have "I am opped in channels out of "? :p

 Respond  
Jethro   -  Jun 19, 2010

GlobalAnomaly, something wrong?

 Respond  
GlobalAnomaly   -  Jun 19, 2010

@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.

 Respond  
Jethro   -  Jun 18, 2010

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.
}
 Respond  
GoldFish   -  Jun 18, 2010

umm what... type "/ns alist" that gives you a list of your access in every channel...

 Respond  
UrZTruly   -  Jun 15, 2010

It Works .... I just Changed the wording a little . Mine says I own Such and such people , not I watch over them . But Overall pretty good script TY ! :D

 Respond  
jakobLUVSpizza   -  Sep 04, 2008

it doesnt even work....

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.