Archived
1
0
Fork 0

Make the main thread exit cleanly in case of connection loss.

This commit is contained in:
Julien Dessaux 2010-04-21 22:58:34 +02:00
parent 8551832bd2
commit 50b21c21ee
3 changed files with 26 additions and 9 deletions

View file

@ -28,6 +28,7 @@ imain = do
run :: IrcBot ()
run = do
initServer
liftIO $ putStrLn "Starting plugins..."
loadPlugin "Ping" mainPing
loadPlugin "Core" mainCore
loadPlugin "Quote" mainQuote