glirc2

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

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.

Synopsis

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

nickTabCompletion Source #

Arguments

:: Bool

reversed

-> ClientState 
-> ClientState 

Complete the nickname at the current cursor position using the userlist for the currently focused channel (if any)