MGranatels / IRC

4 stars 1 forks source link

Implemenation of Name #55

Open MGranatels opened 1 year ago

MGranatels commented 1 year ago

NAMES Syntax:

NAMES [] (RFC 1459) NAMES [ []] (RFC 2812) Returns a list of who is on the comma-separated list of , by channel name. If is omitted, all users are shown, grouped by channel name with all users who are not on a channel being shown as part of channel "*". If is specified, the command is sent to for evaluation. Defined in RFC 1459; the optional parameter was added in RFC 2812.

The response contains all nicknames in the channel prefixed with the highest channel status prefix of that user, for example like this (with @ being the highest status prefix)

:irc.server.net 353 Phyre = #SomeChannel :@WiZ If a client wants to receive all the channel status prefixes of a user and not only their current highest one, the IRCv3 multi-prefix extension can be enabled (@ is the channel operator prefix, and + the lower voice status prefix)

:irc.server.net 353 Phyre = #SomeChannel :@+WiZ See also NAMESX below for an alternate, older approach to achieve the same effect. However, by today most clients and servers support the new IRCv3 standard.