rss2irc 1.0.1 → 1.0.2
raw patch · 2 files changed
+17/−8 lines, 2 files
Files
- Irc.hs +4/−1
- rss2irc.cabal +13/−7
Irc.hs view
@@ -173,8 +173,11 @@ -- | Send a privmsg to the bot's irc server & channel, and to stdout unless --quiet is in effect. ircPrivmsg :: Opts -> Bot -> String -> IO () ircPrivmsg opts bot@(Bot{channel=c}) msg = do- ircWrite opts bot $ encode $ privmsg c msg+ ircWrite opts bot $ encode $ privmsg c msg' unless (quiet opts) $ putStrLn msg >> hFlush stdout+ where+ msg' | use_actions opts = "\1ACTION " ++ msg ++ "\1"+ | otherwise = msg -- | Send a message to the bot's irc server, and log to the console if --debug-irc is in effect. ircWrite :: Opts -> Bot -> String -> IO ()
rss2irc.cabal view
@@ -1,5 +1,5 @@ name: rss2irc-version: 1.0.1+version: 1.0.2 homepage: http://hackage.haskell.org/package/rss2irc license: BSD3 license-file: LICENSE@@ -17,6 +17,12 @@ . > $ rss2irc http://hackage.haskell.org/packages/archive/recent.rss mybot@irc.freenode.org/#haskell .+ 1.0.2 (2013\/2\/18)+ .+ Fixed:+ .+ * `--use-actions` works again+ . 1.0 (2013\/2\/15) . New:@@ -25,16 +31,12 @@ . * easier irc address syntax, drop -p/--port option .- * can poll urls with semicolon parameter separator (eg darcsweb's)- . * can poll https feeds . * can poll from stdin (-) . * can poll a file containing multiple copies of a feed (eg for testing) .- * can announce item urls containing percent- . * `--cache-control` option sets a HTTP Cache-Control header . * `--use-actions` announces with CTCP ACTIONs (like the /me command)@@ -49,6 +51,10 @@ . * thread and error handling is more robust, eg don't ignore exceptions in the irc writer thread .+ * can poll urls with semicolon parameter separator (eg darcsweb's)+ .+ * can announce item urls containing percent+ . * no longer adds stray "upload:" to IRC messages . * renamed --dupe-descriptions to `--allow-duplicates`@@ -70,7 +76,7 @@ executable rss2irc main-is: rss2irc.hs other-modules: Base, Utils, Feed, Irc- ghc-options: -O2 -threaded -Wall -fno-warn-orphans -fno-warn-unused-do-bind+ ghc-options: -threaded -Wall -fno-warn-orphans -fno-warn-unused-do-bind build-depends: base >= 4 && < 5 ,bytestring@@ -96,4 +102,4 @@ source-repository head type: darcs- location: http://joyful.com/repos/rss2irc+ location: http://hub.darcs.net/simon/rss2irc