glirc-2.39.0.1: Console IRC client
Copyright(c) Eric Mertens 2016-2020
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.Commands.Chat

Description

 
Synopsis

Documentation

chatCommand' Source #

Arguments

:: (Source -> Identifier -> IrcMsg) 
-> [Text]

targets

-> NetworkState 
-> ClientState 
-> IO ClientState 

Common logic for /msg and /notice returning the client state

executeChat Source #

Arguments

:: String

chat message

-> ClientState

client state

-> IO CommandResult

command result

Treat the current text input as a chat message and send it.

cmdCtcp :: NetworkCommand (String, String, String) Source #

Implementation of /ctcp