IRCChannel

Aggregate personifying an IRC channel and its state.

An IRC channel may have a topic, a creation date, and one or more *modes*. Modes define how the channel behaves and how it treats its users, including which ones have operator and voice status, as well as which are banned, and more.

Members

Aliases

halfops
alias halfops = modsShorthand!'h'

Array of channel halfops.

ops
alias ops = modsShorthand!'o'

Array of channel operators.

voiced
alias voiced = modsShorthand!'v'

Array of voiced channel users.

Functions

modsShorthand
bool[string] modsShorthand()

Template to deduplicate code for mods shorthands.

Structs

Mode
struct Mode

A channel mode.

Variables

created
long created;

When the channel was created, expressed in UNIX time.

modechars
string modechars;

The current non-data-sporting Modes of the channel.

modes
Mode[] modes;

Array of all Modes that are not simply represented in modechars.

mods
bool[string][char] mods;

Associative array of nicknames with a prefixing channel mode (operator, halfops, voiced, ...) keyed by modechar.

name
string name;

The channel name.

topic
string topic;

The current topic of the channel, as set by operators.

users
bool[string] users;

Associative array of all the nicknames inhabiting the channel.

Meta