irc-client 0.2.3.0 → 0.2.3.1
raw patch · 2 files changed
+7/−5 lines, 2 filesdep ~irc-conduitdep ~transformers
Dependency ranges changed: irc-conduit, transformers
Files
- Network/IRC/Client/Utils.hs +4/−2
- irc-client.cabal +3/−3
Network/IRC/Client/Utils.hs view
@@ -8,6 +8,8 @@ import Network.IRC.Client.Internal (send) import Network.IRC.Client.Types +import qualified Data.Text as T+ -- | 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.@@ -41,8 +43,8 @@ -- | Send a message to the source of an event. reply :: UnicodeEvent -> Text -> IRC () reply ev txt = case _source ev of- Channel c _ -> send $ Privmsg c $ Right txt- User n -> send $ Privmsg n $ Right txt+ Channel c _ -> mapM_ (send . Privmsg c . Right) $ T.lines txt+ User n -> mapM_ (send . Privmsg n . Right) $ T.lines txt _ -> return () -- | Construct a @PRIVMSG@ containing a CTCP
irc-client.cabal view
@@ -10,7 +10,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.2.3.0+version: 0.2.3.1 -- A short (one-line) description of the package. synopsis: An IRC client library.@@ -87,13 +87,13 @@ , bytestring >=0.10 , conduit >=1.2 , data-default-class >=0.0.1- , irc-conduit >=0.1+ , irc-conduit >=0.1.1 , irc-ctcp >=0.1.2 , stm >=2.4 , stm-conduit >=2.5 , text >=1.1 , time >=1.4- , transformers >=0.4+ , transformers >=0.3 , old-locale >=1.0 -- Directories containing source files.