Portability | portable |
---|---|
Stability | provisional |
Maintainer | morfeusz8@gmail.com |
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
:: IrcConfig | Configuration |
-> Bool | Run in a new thread |
-> Bool | Print debug messages |
-> IO (Either IOError IrcServer) | IrcServer instance |
Connects to a server
:: 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.