simpleirc-0.1.0: Simple IRC Library

Portabilityportable
Stabilityprovisional
Maintainermorfeusz8@gmail.com

Network.SimpleIRC.Core

Contents

Description

For information on how to use this library please take a look at the readme file on github, http://github.com/dom96/SimpleIRC#readme.

Synopsis

Functions

connectSource

Arguments

:: IrcConfig

Configuration

-> Bool

Run in a new thread

-> Bool

Print debug messages

-> IO (Either IOError IrcServer)

IrcServer instance

Connects to a server

disconnectSource

Arguments

:: IrcServer 
-> ByteString

Quit message

-> IO () 

Sends a QUIT command to the server.

sendRaw :: IrcServer -> ByteString -> IO ()Source

Sends a raw command to the server

sendMsgSource

Arguments

:: IrcServer 
-> ByteString

Channel

-> ByteString

Message

-> IO () 

Sends a message to a channel

Please note: As of now this function doesn't provide flood control. So be careful.