mIRC Home    About    Download    Register    News    Help

Print Thread
Users on channels... #87119 16/06/04 10:39 PM
Joined: Jun 2003
Posts: 54
C
croyfer Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jun 2003
Posts: 54
Can you make a script that counts how many users a couple of channels have, and then give a ootput like this:

#channel1: <users> - #channel2: <users> - #channel3: <users> - #channel4 <users>

Would be nice =)

Tnx in advance cool


I'm Croyfer @ the EF.net -- #nesse
Re: Users on channels... #87120 17/06/04 12:04 AM
Joined: Dec 2002
Posts: 208
C
Cobra Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 208
Code:
alias chanuser.count {
  echo -ac info2 Channel User Count . . . .
  var %chan.ctr = 0, %chan.tot = $chan(0)
  while (%chan.ctr &lt; %chan.tot) {
    inc %chan.ctr | var %chan = $chan(%chan.ctr)
    echo -ac info2 - %chan has $nick(%chan,0) users.
  }
  echo -ac info2 Channel User Count End
}


u can edit it to output however u want, but thats how u'd do it, enjoy

all i'm doing is looping though each channel $chan(N) and showing how many users are on it $nick(#chan,0)

Cobra^

Re: Users on channels... #87121 17/06/04 02:22 AM
Joined: Jun 2003
Posts: 54
C
croyfer Offline OP
Babel fish
OP Offline
Babel fish
C
Joined: Jun 2003
Posts: 54
Tnx smile


I'm Croyfer @ the EF.net -- #nesse