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