mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2015
Posts: 18
R
Pikka bird
OP Offline
Pikka bird
R
Joined: Sep 2015
Posts: 18
Hi.

Could someone help me. I want it so when you type !ranks it will show how many people in the channel have ops. voice etc.

I was hoping the reply would look something like this

I have identified the following members:

Operators : 2
Voices : 5
members : 17
Guests : 11

If its not to much to ask could you make it so for example if I said !ops it would list the names of the operators. I want it same with voices & members


Code:
 $I.am.REDxPHOEN 

Code:
 $I.am.THE.one.AND.only 

Code:
 $I.am.THE.best 
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
If you typ "/help $nick" you get a list of options you can use $nick with.

For instance, $nick(#,0) will return number of users, $nick(#,1) will return nick of first user in the channel. $nick(#,0,o) will return number of ops.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Sep 2015
Posts: 18
R
Pikka bird
OP Offline
Pikka bird
R
Joined: Sep 2015
Posts: 18
I want a shortcut as such on my channel only. Is it possible?


Code:
 $I.am.REDxPHOEN 

Code:
 $I.am.THE.one.AND.only 

Code:
 $I.am.THE.best 
Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Through an alias, yes.
/help aliases
Code:
alias Users_In { 
var %chan $iif($1,$1,#YourChannel)
var %i 1
var %statuses a o h v r
var %tokens $numtok(%statuses,32)
while (%i <= %tokens) { 
var %status $gettok(%statuses,%i,32)
var %nicks $nick(%chan,%status,0)
echo -a %status $+ : %nicks
inc %i
}
}
Untested, but should serve as an example as to what you want.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net

Link Copied to Clipboard