IRCChannel.Mode

A channel mode.

Some modes overwrite themselves; a channel may be +i or -i, never i twice. Others stack; a channel may have an arbitrary number of b bans. We try our best to support both.

Members

Functions

opEquals
auto opEquals(Mode that)

Compare two Modes with each other to see if they are both of the same type, as well as having the same data and/or user.

toHash
auto toHash()

Produces a hash for this Mode.

Variables

channel
string channel;

The channel this mode refers to, where applicable.

data
string data;

The data associated with the Mode, if applicable. This is often a number, such as what l takes (join limit).

exceptions
IRCUser[] exceptions;

Users that are explicitly exempt from the Mode.

modechar
char modechar;

The character that implies this Mode (i, z, l ...).

negated
bool negated;

Whether or not this Mode should be considered to be its own antithesis.

user
IRCUser user;

The user associated with the Mode, when it is not just data.

Meta