mIRC Homepage
Posted By: Bleahetc Display amount of users - 12/03/08 11:35 PM
Is there a possibility to display the real number of users in a channel? The number normally shown in /list #chan - in case +D is on.

Thanks.
Posted By: RoCk Re: Display amount of users - 12/03/08 11:53 PM

Not unless you're on the channel.
Posted By: Bleahetc Re: Display amount of users - 13/03/08 12:24 AM
That's the case. It's for recording purposes for an event. Thanks.
Posted By: RusselB Re: Display amount of users - 13/03/08 12:31 AM
It is possible to get that number from the /list command, using Raw numerics. If you really need this done and don't know how to do it, I will do the work, but it'll take a couple of days as I have other projects already on the go.
Posted By: Bleahetc Re: Display amount of users - 13/03/08 12:33 AM
I'd appreciate it by far. I can wait! Contact at bleah at telenet dot be - if necessary.

Thank you.
Posted By: 5618 Re: Display amount of users - 13/03/08 04:26 PM
Can't you just use $nick($chan,0) ?
Posted By: Riamus2 Re: Display amount of users - 13/03/08 04:33 PM
He wants the total without joining the channel. $nick($chan,0) doesn't work if you aren't in the channel.
Posted By: 5618 Re: Display amount of users - 13/03/08 04:36 PM
I never saw him saying he isn't on the channel. "That's the case." can be taken either way, but I assume it means "Yes, I am indeed on the channel". ;P
Then again, I'm not familiar with the IRCd using +D as a channel mode, so that might be helpful when drawing a conclusion.
Posted By: foshizzle Re: Display amount of users - 13/03/08 05:26 PM
unreal IRCD
Posted By: 5618 Re: Display amount of users - 13/03/08 05:39 PM
UnrealIRCd does not use channel or usermode +D...
Posted By: Bleahetc Re: Display amount of users - 13/03/08 06:04 PM
I'm on the channel, and it's Quakenet, IRCd.
Posted By: RoCk Re: Display amount of users - 13/03/08 08:07 PM

So then 5618's question stands, can you not use $nick($chan,0) ?
Posted By: Riamus2 Re: Display amount of users - 13/03/08 08:48 PM
Ok. Considering he was using /list, I assumed he wasn't on the channel. blush

To the OP, just use $nick($chan,0) as mentioned. I have no idea what this +D does, though. So maybe that affects something.
Posted By: RusselB Re: Display amount of users - 14/03/08 02:10 AM
Here's the code.. it is tested, but as it uses the /list command, you will get the list window.. I was not able to figure out a way around that.
Code:
menu * {
  Number of Users : .llist $?="Enter channel name (wildcards will work)"
}
alias -l llist {
  .enable #llist
  .list $1
}
#llist off
raw 322:*:{
  .echo -a $2 has $3 users
}
raw 323:*:{
  .disable #llist
  haltdef
}
#llist end
Posted By: Bleahetc Re: Display amount of users - 15/03/08 03:12 PM
Thanks! Awesome. Do you mind explaining how to bind it to a timer? I've tried all sorts of combination but no luck, novice for life.

Thanks again.
Posted By: Bleahetc Re: Display amount of users - 15/03/08 04:20 PM
It's OK I found a way!
© mIRC Discussion Forums