summaryrefslogtreecommitdiff
path: root/Hsbot/Config.hs
diff options
context:
space:
mode:
authorJulien Dessaux2010-05-29 16:59:41 +0200
committerJulien Dessaux2010-05-29 17:05:56 +0200
commit57bec4921b02e745f412e954ea4a4ec6b3c31b3b (patch)
tree3cca9e3630772cd9594442ff3ff2101a80599a4d /Hsbot/Config.hs
parentImplemented the clean killing of plugins' threads. (diff)
downloadhsbot-57bec4921b02e745f412e954ea4a4ec6b3c31b3b.tar.gz
hsbot-57bec4921b02e745f412e954ea4a4ec6b3c31b3b.tar.bz2
hsbot-57bec4921b02e745f412e954ea4a4ec6b3c31b3b.zip
Rationalized the way bot configs are handled.
Diffstat (limited to '')
-rw-r--r--Hsbot/Config.hs15
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