diff options
author | Julien Dessaux | 2011-08-08 20:56:20 +0200 |
---|---|---|
committer | Julien Dessaux | 2011-08-08 20:58:34 +0200 |
commit | 3b914c1b7729f52ba96e51ad43424909acae681c (patch) | |
tree | bc4f81ee8af1abea9cd2aef1471f288721b8f088 /Hsbot/Types.hs | |
parent | Added Administrative plugin that will permit dynamic reloading (diff) | |
download | hsbot-3b914c1b7729f52ba96e51ad43424909acae681c.tar.gz hsbot-3b914c1b7729f52ba96e51ad43424909acae681c.tar.bz2 hsbot-3b914c1b7729f52ba96e51ad43424909acae681c.zip |
Added exception handling, an autorestart when that happens and output in case of restart/reload
Diffstat (limited to 'Hsbot/Types.hs')
-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 8f84482..7ca9ee0 100644 --- a/Hsbot/Types.hs +++ b/Hsbot/Types.hs @@ -66,7 +66,7 @@ data PluginId = PluginId data Message = IncomingMsg IRC.Message | OutgoingMsg IRC.Message -data BotStatus = BotContinue | BotExit | BotReload | BotRestart deriving (Show) +data BotStatus = BotExit | BotReload String | BotRestart (String, Maybe String) deriving (Read, Show) -- Config data Config = Config |