Safe Haskell | None |
---|---|
Language | Haskell2010 |
Commonly-used utility functions for IRC clients.
- setNick :: Text -> IRC ()
- leaveChannel :: Text -> Maybe Text -> IRC ()
- delChan :: TVar InstanceConfig -> Text -> STM ()
- reply :: UnicodeEvent -> Text -> IRC ()
- ctcp :: Text -> Text -> [Text] -> UnicodeMessage
- ctcpReply :: Text -> Text -> [Text] -> UnicodeMessage
Documentation
setNick :: Text -> IRC () Source
Update the nick in the instance configuration and also send an update message to the server. This doesn't attempt to resolve nick collisions, that's up to the event handlers.
leaveChannel :: Text -> Maybe Text -> IRC () Source
Update the channel list in the instance configuration and also part the channel.
delChan :: TVar InstanceConfig -> Text -> STM () Source
Remove a channel from the list without sending a part command (be careful not to let the channel list get out of sync with the real-world state if you use it for anything!)
reply :: UnicodeEvent -> Text -> IRC () Source
Send a message to the source of an event.
ctcp :: Text -> Text -> [Text] -> UnicodeMessage Source
Construct a PRIVMSG
containing a CTCP
ctcpReply :: Text -> Text -> [Text] -> UnicodeMessage Source
Construct a NOTICE
containing a CTCP