mIRC Home    About    Download    Register    News    Help

Topic Options
#196216 - 12/03/08 11:35 PM Display amount of users
Bleahetc Offline
Nutrimatic drinks dispenser

Registered: 12/03/08
Posts: 6
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.

Top
#196219 - 12/03/08 11:53 PM Re: Display amount of users [Re: Bleahetc]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009

Not unless you're on the channel.

Top
#196222 - 13/03/08 12:24 AM Re: Display amount of users [Re: RoCk]
Bleahetc Offline
Nutrimatic drinks dispenser

Registered: 12/03/08
Posts: 6
That's the case. It's for recording purposes for an event. Thanks.

Top
#196223 - 13/03/08 12:31 AM Re: Display amount of users [Re: Bleahetc]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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.

Top
#196225 - 13/03/08 12:33 AM Re: Display amount of users [Re: RusselB]
Bleahetc Offline
Nutrimatic drinks dispenser

Registered: 12/03/08
Posts: 6
I'd appreciate it by far. I can wait! Contact at bleah at telenet dot be - if necessary.

Thank you.

Top
#196237 - 13/03/08 04:26 PM Re: Display amount of users [Re: Bleahetc]
5618 Offline
Hoopy frood

Registered: 18/06/07
Posts: 933
Can't you just use $nick($chan,0) ?

Top
#196238 - 13/03/08 04:33 PM Re: Display amount of users [Re: 5618]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
He wants the total without joining the channel. $nick($chan,0) doesn't work if you aren't in the channel.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#196239 - 13/03/08 04:36 PM Re: Display amount of users [Re: Riamus2]
5618 Offline
Hoopy frood

Registered: 18/06/07
Posts: 933
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.


Edited by 5618 (13/03/08 04:37 PM)

Top
#196242 - 13/03/08 05:26 PM Re: Display amount of users [Re: 5618]
foshizzle Offline
Fjord artisan

Registered: 20/08/07
Posts: 333
Loc: Silicon Valley
unreal IRCD
_________________________
This is not the signature you are looking for

Top
#196243 - 13/03/08 05:39 PM Re: Display amount of users [Re: foshizzle]
5618 Offline
Hoopy frood

Registered: 18/06/07
Posts: 933
UnrealIRCd does not use channel or usermode +D...

Top
#196245 - 13/03/08 06:04 PM Re: Display amount of users [Re: 5618]
Bleahetc Offline
Nutrimatic drinks dispenser

Registered: 12/03/08
Posts: 6
I'm on the channel, and it's Quakenet, IRCd.

Top
#196251 - 13/03/08 08:07 PM Re: Display amount of users [Re: Bleahetc]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009

So then 5618's question stands, can you not use $nick($chan,0) ?

Top
#196254 - 13/03/08 08:48 PM Re: Display amount of users [Re: 5618]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
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.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#196271 - 14/03/08 02:10 AM Re: Display amount of users [Re: Bleahetc]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
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

Top
#196354 - 15/03/08 03:12 PM Re: Display amount of users [Re: RusselB]
Bleahetc Offline
Nutrimatic drinks dispenser

Registered: 12/03/08
Posts: 6
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.

Top
#196360 - 15/03/08 04:20 PM Re: Display amount of users [Re: Bleahetc]
Bleahetc Offline
Nutrimatic drinks dispenser

Registered: 12/03/08
Posts: 6
It's OK I found a way!

Top