Continue rewriting, found a problem in the way I kill plugins.
This commit is contained in:
parent
fd8d5faf5f
commit
416460886d
9 changed files with 48 additions and 25 deletions
|
@ -15,8 +15,8 @@ import Hsbot.Types
|
|||
imain :: IO ()
|
||||
imain = do
|
||||
bot <- connectServer $ ircServer config
|
||||
(runStateT run bot) `catch` (const $ return ((), bot))
|
||||
disconnectServer bot
|
||||
bot' <- (execStateT run bot) `catch` (const $ return bot)
|
||||
evalStateT disconnectServer bot'
|
||||
|
||||
-- | The Bot monad main function
|
||||
run :: IrcBot ()
|
||||
|
|
Reference in a new issue