glirc-2.20.6: Console IRC client

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

Client.Commands.Exec

Contents

Description

This module renders the lines used in the channel mask list. A mask list can show channel bans, quiets, invites, and exceptions.

Synopsis

Exec command configuration

data ExecCmd Source #

Settings for /exec command.

When no network or channel are specified the output is sent to the client window.

When only a network is specified the output is sent as raw IRC commands to that network.

When only a channel is specified the output is sent as messages on the current network to the given channel.

When the network and channel are specified the output is sent as messages to the given channel on the given network.

Constructors

ExecCmd 

Fields

Lenses

Operations

parseExecCmd Source #

Arguments

:: String

exec arguments

-> Either [String] ExecCmd

error or parsed command

Parse the arguments to /exec looking for various flags and the command and its arguments.

runExecCmd Source #

Arguments

:: ExecCmd

exec configuration

-> IO (Either [String] [String])

error lines or output lines

Execute the requested command synchronously and return the output.