Copyright | (c) Dan Doel, 2016 |
---|---|
License | ISC |
Maintainer | dan.doel@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module defines types for hooking into the operation of the client.
- data MessageResult
- data MessageHook = MessageHook {}
- messageHookName :: Lens' MessageHook Text
- messageHookStateful :: Lens' MessageHook Bool
- messageHookAction :: Lens' MessageHook (IrcMsg -> MessageResult)
- applyMessageHooks :: [MessageHook] -> IrcMsg -> Maybe IrcMsg
Documentation
- Message hook results
data MessageResult Source #
The possible results of a MessageHook
action. A hook can decline to
handle a message (PassMessage
), filter out a message (OmitMessage
),
or change a message into an arbitrary other message (RemapMessage
).
- Message hooks
data MessageHook Source #
MessageHook | |
|