Temporary fix for the parsing mistake when not using TLS
This commit is contained in:
parent
899f76718f
commit
fca73a28e3
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ botReader env handle mctx chan = do
|
||||||
Nothing -> return ()
|
Nothing -> return ()
|
||||||
readThis :: Handle -> Maybe (TLSCtx Handle) -> IO String
|
readThis :: Handle -> Maybe (TLSCtx Handle) -> IO String
|
||||||
readThis _ (Just ctx) = fmap L.toString (recvData ctx)
|
readThis _ (Just ctx) = fmap L.toString (recvData ctx)
|
||||||
readThis h Nothing = hGetLine h
|
readThis h Nothing = hGetLine h >>= \s -> return $ s ++ "\n"
|
||||||
|
|
||||||
botLoop :: Env IO ()
|
botLoop :: Env IO ()
|
||||||
botLoop = forever $ do
|
botLoop = forever $ do
|
||||||
|
|
Reference in a new issue