irc-core-2.7.1: IRC core library for glirc

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellSafe
LanguageHaskell2010

Irc.Modes

Contents

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
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 Freenode

defaultUmodeTypes :: ModeTypes Source #

The default UMODE used by Freenode

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.