qotd should work now
parent
55d17402cb
commit
6c2333ac61
3
Anna.hs
3
Anna.hs
|
@ -111,7 +111,8 @@ qotd :: String -> Net ()
|
||||||
qotd chn = do
|
qotd chn = do
|
||||||
handle <- liftIO $ connectTo "127.0.0.1" 1717
|
handle <- liftIO $ connectTo "127.0.0.1" 1717
|
||||||
text <- liftIO $ hGetContents handle
|
text <- liftIO $ hGetContents handle
|
||||||
sendMessage chn text
|
let textLines = lines text
|
||||||
|
mapM_ (sendMessage chn) textLines
|
||||||
return ()
|
return ()
|
||||||
|
|
||||||
-- TODO
|
-- TODO
|
||||||
|
|
Loading…
Reference in New Issue