DCC (Direct Client-to-Client) is an IRC sub-protocol for establishing and maintaining direct connections to exchange messages and files.
See http://www.irchelp.org/irchelp/rfc/ctcpspec.html for more details.
- (Standard) DCC
- Reverse DCC
- Add
irc-dcc
to thebuild-depends
section of your.cabal
file. - Import
Network.IRC.DCC
. -
- Parse a CTCP message using
runParser
and any of theparse*
methods exported by this module. If the CTCP message was the desired DCC command, the function will return aRight
value. - Encode a DCC command by using
encodeCtcp
function of itsCtcpCommand
instance.
- Parse a CTCP message using
See this package's documentation on Hackage.
- Install Stack.
- Run
stack build
.