| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | morfeusz8@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.
- connect :: IrcConfig -> Bool -> Bool -> IO (Either IOError IrcServer)
- disconnect :: IrcServer -> ByteString -> IO ()
- sendRaw :: IrcServer -> ByteString -> IO ()
- sendMsg :: IrcServer -> ByteString -> ByteString -> IO ()
- sendCmd :: IrcServer -> Command -> IO ()
- addEvent :: IrcServer -> IrcEvent -> IO Unique
- changeEvents :: IrcServer -> [IrcEvent] -> IO ()
- remEvent :: IrcServer -> Unique -> IO ()
- defaultConfig :: IrcConfig
Functions
Arguments
| :: IrcConfig | Configuration |
| -> Bool | Run in a new thread |
| -> Bool | Print debug messages |
| -> IO (Either IOError IrcServer) | IrcServer instance |
Connects to a server
Arguments
| :: IrcServer | |
| -> ByteString | Quit message |
| -> IO () |
Sends a QUIT command to the server.
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.