Search code examples
irc

IRC : Command to get the channels that I joined


Is there an IRC command to know the channels that I am currently in?


Solution

  • There is no such command directly.

    You could use WHOIS then look for numeric reply RPL_WHOISCHANNELS (numbered 319), splitting the text at spaces to determine your channel list.

    See: https://www.rfc-editor.org/rfc/rfc1459#section-4.5.2