Is there a way to get the users of an IRC channel without joining it?
Asked Answered
J

3

17

I want to be able to get the list of users and their details from an IRC channel without joining it and thus increasing its user count.

So instead of issuing JOIN #chan and then NAMES #chan to get the list of users, I can run the latter command. Is this possible?

Jinajingle answered 21/8, 2013 at 9:16 Comment(0)
R
21

You can issue NAMES for a channel where you are not in, but NAMES does not display users that are invisible (usermode +i).

Most servers set the usermode +i on connect, and some don't even allow changing it.

So if you don't have everyone set their usermode -i, you can't see them when not in the channel.

The RFC is not very specific about usermode +i. Some say that you can see users with +i on a NAMES reply if you share a common channel, and others say that you can not.

Roulette answered 21/8, 2013 at 13:50 Comment(0)
W
6

While the RFC implies that you should be able to issue /NAMES #chan from outside #chan (or even just issue /NAMES to get everybody), in practice many servers I've seen will ignore the former if you are not in a channel and just reject the latter.

The only reliable way is to issue /JOIN and /NAMES, and then deduct one from the user list to account for your bot.

Whitlow answered 21/8, 2013 at 9:31 Comment(0)
R
4

You can see the number of users with /list #channel

Revile answered 11/1, 2017 at 5:46 Comment(2)
That wasn't the question - "get the list of users and their details".Chalmer
The count was about getting the information without affecting the IRC channel (by joining to get the information).Chalmer

© 2022 - 2024 — McMap. All rights reserved.