diff options
author | Julien Dessaux | 2010-05-29 16:59:41 +0200 |
---|---|---|
committer | Julien Dessaux | 2010-05-29 17:05:56 +0200 |
commit | 57bec4921b02e745f412e954ea4a4ec6b3c31b3b (patch) | |
tree | 3cca9e3630772cd9594442ff3ff2101a80599a4d /Hsbot/Config.hs | |
parent | Implemented the clean killing of plugins' threads. (diff) | |
download | hsbot-57bec4921b02e745f412e954ea4a4ec6b3c31b3b.tar.gz hsbot-57bec4921b02e745f412e954ea4a4ec6b3c31b3b.tar.bz2 hsbot-57bec4921b02e745f412e954ea4a4ec6b3c31b3b.zip |
Rationalized the way bot configs are handled.
Diffstat (limited to 'Hsbot/Config.hs')
-rw-r--r-- | Hsbot/Config.hs | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Hsbot/Config.hs b/Hsbot/Config.hs index 9ce62c5..121cc98 100644 --- a/Hsbot/Config.hs +++ b/Hsbot/Config.hs @@ -1,18 +1,9 @@ module Hsbot.Config - ( Config(..) - , defaultConfig + ( BotConfig (..) ) where -import Hsbot.Irc.Config (IrcConfig) +import Hsbot.Irc.Config -- | Configuration data type -data Config = Config - { ircConfigs :: [IrcConfig] - } - --- | User configuration -defaultConfig :: Config -defaultConfig = Config - { ircConfigs = [] - } +data BotConfig = IrcBotConfig IrcConfig |