| Copyright | (c) Eric Mertens 2016-2020 |
|---|---|
| License | ISC |
| Maintainer | emertens@gmail.com |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Client.Commands.Chat
Description
Synopsis
- chatCommands :: CommandSection
- chatCommand' :: (Source -> Identifier -> IrcMsg) -> [Text] -> NetworkState -> ClientState -> IO ClientState
- executeChat :: Focus -> String -> ClientState -> IO CommandResult
- cmdCtcp :: NetworkCommand (String, String, String)
Documentation
Arguments
| :: (Source -> Identifier -> IrcMsg) | |
| -> [Text] | targets |
| -> NetworkState | |
| -> ClientState | |
| -> IO ClientState |
Common logic for /msg and /notice returning the client state
Arguments
| :: Focus | |
| -> String | chat message |
| -> ClientState | client state |
| -> IO CommandResult | command result |
Treat the current text input as a chat message and send it.