Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if an user is a voice, half-operator, operator,... #230

Closed
Frostman98 opened this issue Apr 24, 2014 · 1 comment
Closed

Check if an user is a voice, half-operator, operator,... #230

Frostman98 opened this issue Apr 24, 2014 · 1 comment

Comments

@Frostman98
Copy link

It's possible to have a user info if he is a voice, half-operator, operator,...?

@del6597
Copy link

del6597 commented Apr 25, 2014

You should bind to the NAMES event when joining a channel and then keeping track of the MODE changes that occur in the channel.
https://node-irc.readthedocs.org/en/latest/API.html#%27names%27

This event gives the list of nicks and the highest status that they currently have in the channel. Most IRCds will not give you a full list of usermodes when submitting a NAMES command to the server. For example: if I am in a channel with operator status and I grant myself half-operator and voice, then users in the channel will see those +h and +v mode changes. The users joining the channel will only be told that I have operator status by the server however.

There is no API level method for checking directly if someone has a status, but that doesn't mean you are unable to keep track of the information yourself.

@osslate osslate closed this as completed May 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants