Make the main thread exit cleanly in case of connection loss.
This commit is contained in:
parent
8551832bd2
commit
50b21c21ee
3 changed files with 26 additions and 9 deletions
|
@ -28,6 +28,7 @@ imain = do
|
|||
run :: IrcBot ()
|
||||
run = do
|
||||
initServer
|
||||
liftIO $ putStrLn "Starting plugins..."
|
||||
loadPlugin "Ping" mainPing
|
||||
loadPlugin "Core" mainCore
|
||||
loadPlugin "Quote" mainQuote
|
||||
|
|
Reference in a new issue