mIRC Homepage
Posted By: croyfer Users on channels... - 16/06/04 10:39 PM
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
Posted By: Cobra Re: Users on channels... - 17/06/04 12:04 AM
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^
Posted By: croyfer Re: Users on channels... - 17/06/04 02:22 AM
Tnx smile
© mIRC Discussion Forums