diff options
author | Julien Dessaux | 2010-04-21 20:57:22 +0200 |
---|---|---|
committer | Julien Dessaux | 2010-04-21 20:57:22 +0200 |
commit | 4c76d3d40bbfea365283c13256b3e7cf2d2deb5e (patch) | |
tree | b5f4e70d225ba0247ad0691e37b45b8cb4142f6c /Hsbot/Core.hs | |
parent | Fixed the clean killing of plugin's threads, fixed exception management and c... (diff) | |
download | hsbot-4c76d3d40bbfea365283c13256b3e7cf2d2deb5e.tar.gz hsbot-4c76d3d40bbfea365283c13256b3e7cf2d2deb5e.tar.bz2 hsbot-4c76d3d40bbfea365283c13256b3e7cf2d2deb5e.zip |
Fixed several stuff.
Diffstat (limited to '')
-rw-r--r-- | Hsbot/Core.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Hsbot/Core.hs b/Hsbot/Core.hs index a8f29ec..e3ce3eb 100644 --- a/Hsbot/Core.hs +++ b/Hsbot/Core.hs @@ -4,9 +4,9 @@ module Hsbot.Core ) where import Control.Concurrent -import Control.Concurrent.Chan +import Control.Concurrent.Chan() import Control.Monad.State -import Data.List +import Data.List() import qualified Data.Map as M import Network import System.IO @@ -36,8 +36,8 @@ connectServer server = do disconnectServer :: IrcBot () disconnectServer = do bot <- get - liftIO $ killThread $ readerThreadId bot mapM_ unloadPlugin (M.keys $ botPlugins bot) + liftIO $ killThread $ readerThreadId bot liftIO $ hClose $ botHandle bot return () |