diff options
author | Julien Dessaux | 2010-05-16 17:58:38 +0200 |
---|---|---|
committer | Julien Dessaux | 2010-05-16 17:58:38 +0200 |
commit | 738ad9e9bbbefb43a7889a458ff1c326a324eb9a (patch) | |
tree | f8337cc73ffdfa6956dc9425a8338fe496eafec7 /Hsbot/Irc/Types.hs | |
parent | Rewrote nearly everything! (diff) | |
download | hsbot-738ad9e9bbbefb43a7889a458ff1c326a324eb9a.tar.gz hsbot-738ad9e9bbbefb43a7889a458ff1c326a324eb9a.tar.bz2 hsbot-738ad9e9bbbefb43a7889a458ff1c326a324eb9a.zip |
Removed thread ids from plugins data structure.
Diffstat (limited to 'Hsbot/Irc/Types.hs')
-rw-r--r-- | Hsbot/Irc/Types.hs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Hsbot/Irc/Types.hs b/Hsbot/Irc/Types.hs index eac58d7..7ee716f 100644 --- a/Hsbot/Irc/Types.hs +++ b/Hsbot/Irc/Types.hs @@ -21,15 +21,15 @@ type IrcBot = StateT IrcBotState IO -- | An Ircbot state data IrcBotState = IrcBotState - { ircBotStartTime :: UTCTime -- the bot's uptime - , ircBotPlugins :: M.Map String IrcPluginState -- Loaded plugins - , ircBotCommands :: M.Map String [String] -- Loaded plugins - , ircBotChan :: Chan IrcBotMsg -- The IrcBot's communication channel - , ircBotMasterChan :: Chan BotMsg -- The Hsbot communication channel - , ircBotMyChan :: Chan BotMsg -- The Hsbot communication channel - , ircBotServerState :: IrcServerState -- The state of the IrcServer - , ircBotHandle :: Handle -- The server's socket/handle - , ircBotConfig :: IrcConfig -- The starting configuration + { ircBotStartTime :: UTCTime -- the bot's uptime + , ircBotPlugins :: M.Map String (IrcPluginState, 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 + , ircBotMyChan :: Chan BotMsg -- The Hsbot communication channel + , ircBotServerState :: IrcServerState -- The state of the IrcServer + , ircBotHandle :: Handle -- The server's socket/handle + , ircBotConfig :: IrcConfig -- The starting configuration , ircBotReaderThreadId :: ThreadId , ircBotMasterReaderThreadId :: ThreadId } |