mIRC Home    About    Download    Register    News    Help

Print Thread
#196216 12/03/08 11:35 PM
Joined: Mar 2008
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Mar 2008
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.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Not unless you're on the channel.

Joined: Mar 2008
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Mar 2008
Posts: 6
That's the case. It's for recording purposes for an event. Thanks.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Mar 2008
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Mar 2008
Posts: 6
I'd appreciate it by far. I can wait! Contact at bleah at telenet dot be - if necessary.

Thank you.

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Can't you just use $nick($chan,0) ?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
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.

Last edited by 5618; 13/03/08 04:37 PM.
Joined: Aug 2007
Posts: 334
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Aug 2007
Posts: 334
unreal IRCD


This is not the signature you are looking for
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
UnrealIRCd does not use channel or usermode +D...

Joined: Mar 2008
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Mar 2008
Posts: 6
I'm on the channel, and it's Quakenet, IRCd.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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

Joined: Mar 2008
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Mar 2008
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.

Joined: Mar 2008
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Mar 2008
Posts: 6
It's OK I found a way!


Link Copied to Clipboard