glirc2

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

Client.ChannelState

Contents

Description

This module is responsible for tracking the state of an individual IRC channel while the client is connected to it. When the client joins a channel a new channel session is created and when the client leaves a channel is it destroyed.

Synopsis

Channel state type

chanList Source #

Arguments

:: Functor f 
=> Char

mode

-> LensLike' f ChannelState (HashMap Text (Text, UTCTime)) 

Lens into a mask list for a given mode.

Topic information

Channel manipulation

setTopic :: Text -> ChannelState -> ChannelState Source #

Set the channel topic

joinChannel :: Identifier -> ChannelState -> ChannelState Source #

Add a user to the user list

partChannel :: Identifier -> ChannelState -> ChannelState Source #

Remove a user from the user list

nickChange :: Identifier -> Identifier -> ChannelState -> ChannelState Source #

Rename a user in the user list