diff options
author | Julien Dessaux | 2010-06-10 23:30:09 +0200 |
---|---|---|
committer | Julien Dessaux | 2010-06-20 17:49:39 +0200 |
commit | d97177ce3b392f80e36a93ca41ca1426b0220733 (patch) | |
tree | cfa8c4336cfebcad33236e9f0e88dacf832b5722 /Hsbot/Irc/Types.hs | |
parent | Fixed the plugin termination. (diff) | |
download | hsbot-d97177ce3b392f80e36a93ca41ca1426b0220733.tar.gz hsbot-d97177ce3b392f80e36a93ca41ca1426b0220733.tar.bz2 hsbot-d97177ce3b392f80e36a93ca41ca1426b0220733.zip |
Wrote most of the resume code for the core and the irc plugin.
Diffstat (limited to 'Hsbot/Irc/Types.hs')
-rw-r--r-- | Hsbot/Irc/Types.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Hsbot/Irc/Types.hs b/Hsbot/Irc/Types.hs index 4b75085..63411df 100644 --- a/Hsbot/Irc/Types.hs +++ b/Hsbot/Irc/Types.hs @@ -9,7 +9,6 @@ module Hsbot.Irc.Types import Control.Concurrent import Control.Monad.State import qualified Data.Map as M -import Data.Time import System.IO import Hsbot.Irc.Config @@ -22,8 +21,7 @@ type IrcBot = StateT IrcBotState IO -- | An Ircbot state data IrcBotState = IrcBotState - { ircBotStartTime :: UTCTime -- the bot's uptime - , ircBotPlugins :: M.Map String (IrcPluginState, MVar (), ThreadId) -- Loaded plugins + { ircBotPlugins :: M.Map String (IrcPluginState, MVar (), ThreadId) -- Loaded plugins , ircBotCommands :: M.Map String [String] -- Loaded plugins , ircBotChan :: Chan IrcBotMsg -- The IrcBot's communication channel , ircBotMasterChan :: Chan BotMsg -- The Hsbot communication channel |