summaryrefslogtreecommitdiff
path: root/Hsbot/Core.hs
diff options
context:
space:
mode:
authorJulien Dessaux2009-08-06 00:09:56 +0200
committerJulien Dessaux2009-08-06 00:09:56 +0200
commit45ebb68aa03ff7a292f46048141949c12cf90f91 (patch)
treefe336511aa80bcdddff64894bdb865359f6d7f18 /Hsbot/Core.hs
parentWrote a dynamic compilation stuff that works (unable to test reboot yet) (diff)
downloadhsbot-45ebb68aa03ff7a292f46048141949c12cf90f91.tar.gz
hsbot-45ebb68aa03ff7a292f46048141949c12cf90f91.tar.bz2
hsbot-45ebb68aa03ff7a292f46048141949c12cf90f91.zip
renamed "Server" algebraic data type to "IrcServer"
Diffstat (limited to 'Hsbot/Core.hs')
-rw-r--r--Hsbot/Core.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Hsbot/Core.hs b/Hsbot/Core.hs
index 153ce77..b2e34c8 100644
--- a/Hsbot/Core.hs
+++ b/Hsbot/Core.hs
@@ -1,7 +1,7 @@
module Hsbot.Core
( Bot(..)
, Config(..)
- , Server(..)
+ , IrcServer(..)
, newbot
) where
@@ -10,17 +10,17 @@ import System.IO (Handle)
-- | An IRC Bot server state (socket handles)
data Bot = Bot
- { joinedServers :: M.Map Server Handle -- servers we are connected to
+ { joinedServers :: M.Map IrcServer Handle -- servers we are connected to
} deriving (Eq, Show)
-- | Configuration data type
data Config = Config {
commandPrefixes :: String, -- command prefixes, for example @[\'>\',\'@\',\'?\']@
- servers :: [Server] -- list of 'Server's to connect to
+ ircServers :: [IrcServer] -- list of 'Server's to connect to
} deriving (Eq,Show)
-- | An IRC server
-data Server = Server
+data IrcServer = IrcServer
{ address :: String -- the server's address
, port :: Int -- the server's port
, channels :: [String] -- a list of channels to join