diff options
author | Julien Dessaux | 2010-05-29 23:48:47 +0200 |
---|---|---|
committer | Julien Dessaux | 2010-05-29 23:55:20 +0200 |
commit | 3410caa6f2e1fd74d55f7a1717420bb2e1052b12 (patch) | |
tree | 214cb220de340eada4141479ae6415e654a4fdc3 /Hsbot/Types.hs | |
parent | Added signal handling and a better semantic for bot status. (diff) | |
download | hsbot-3410caa6f2e1fd74d55f7a1717420bb2e1052b12.tar.gz hsbot-3410caa6f2e1fd74d55f7a1717420bb2e1052b12.tar.bz2 hsbot-3410caa6f2e1fd74d55f7a1717420bb2e1052b12.zip |
Fixed the plugin termination.
The master of a plugin will now wait for the plugin it kills to terminate.
Diffstat (limited to '')
-rw-r--r-- | Hsbot/Types.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Hsbot/Types.hs b/Hsbot/Types.hs index 009390d..66b4d6b 100644 --- a/Hsbot/Types.hs +++ b/Hsbot/Types.hs @@ -27,7 +27,7 @@ type Bot = StateT BotState IO -- | An Hsbot state data BotState = BotState { botStartTime :: UTCTime -- the bot's uptime - , botPlugins :: M.Map String (PluginState, ThreadId) -- Loaded plugins + , botPlugins :: M.Map String (PluginState, MVar (), ThreadId) -- Loaded plugins , botChan :: Chan BotMsg -- the bot's communication channel , botConfig :: [BotConfig] -- the bot's starting config , botResumeData :: MVar BotResumeData -- the necessary data to resume the bot's operations on reboot |