irc-core-2.13: IRC core library for glirc
Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

Irc.Modes

Description

This module provides support for interpreting the modes changed by a MODE command.

Synopsis

Interpretation of modes

data ModeTypes Source #

Settings that describe how to interpret channel modes

Constructors

ModeTypes 

Fields

Instances

Instances details
Show ModeTypes Source # 
Instance details

Defined in Irc.Modes

modesLists :: Functor f => ([Char] -> f [Char]) -> ModeTypes -> f ModeTypes Source #

Lens for _modesList

modesSetArg :: Functor f => ([Char] -> f [Char]) -> ModeTypes -> f ModeTypes Source #

Lens for _modesSetArg

defaultModeTypes :: ModeTypes Source #

The channel modes used by Solanum

defaultUmodeTypes :: ModeTypes Source #

The default UMODE used by Solanum

Operations for working with MODE command parameters

splitModes Source #

Arguments

:: ModeTypes

mode interpretation

-> Text

modes

-> [Text]

arguments

-> Maybe [(Bool, Char, Text)]

(set, mode, parameter)

Split up a mode change command and arguments into individual changes given a configuration.

unsplitModes Source #

Arguments

:: [(Bool, Char, Text)]

(set,mode,parameter)

-> [Text] 

Construct the arguments to a MODE command corresponding to the given mode changes.