Ircxd.Casemapping (ircxd v1.1.0)

Copy Markdown View Source

IRC casemapping helpers.

Modern IRC servers advertise their casemapping in RPL_ISUPPORT with the CASEMAPPING token. Clients need this when comparing nicknames and channel names.

Summary

Types

An IRC identifier casemapping.

Functions

Compares two IRC identifiers with the selected casemapping.

Returns the casemapping for a CASEMAPPING token value.

Normalizes an IRC identifier with the selected casemapping.

Types

mapping()

@type mapping() :: :ascii | :rfc1459 | :strict_rfc1459

An IRC identifier casemapping.

Functions

equal?(left, right, mapping \\ :rfc1459)

Compares two IRC identifiers with the selected casemapping.

from_isupport(arg1)

Returns the casemapping for a CASEMAPPING token value.

normalize(value, mapping \\ :rfc1459)

Normalizes an IRC identifier with the selected casemapping.