| Copyright | (c) Eric Mertens, 2016 |
|---|---|
| License | ISC |
| Maintainer | emertens@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Client.Commands
Description
This module renders the lines used in the channel mask list. A mask list can show channel bans, quiets, invites, and exceptions.
- data CommandResult
- executeCommand :: Maybe Bool -> String -> ClientState -> IO CommandResult
- nickTabCompletion :: Bool -> ClientState -> ClientState
Documentation
data CommandResult Source #
Possible results of running a command
Constructors
| CommandContinue ClientState | Continue running client with updated state |
| CommandQuit | Client should close |
executeCommand :: Maybe Bool -> String -> ClientState -> IO CommandResult Source #
Parse and execute the given command. When the first argument is Nothing the command is executed, otherwise the first argument is the cursor position for tab-completion
Arguments
| :: Bool | reversed |
| -> ClientState | |
| -> ClientState |
Complete the nickname at the current cursor position using the userlist for the currently focused channel (if any)