summaryrefslogtreecommitdiff
path: root/Hsbot/Types.hs
diff options
context:
space:
mode:
authorJulien Dessaux2010-04-21 22:39:03 +0200
committerJulien Dessaux2010-04-21 22:39:03 +0200
commit8551832bd29508f36b6820e19d4af0525b1cba50 (patch)
tree2a99933414aee751f3843be901940ab44dd4189e /Hsbot/Types.hs
parentRemoved all the dynamic module loading stuff. (diff)
downloadhsbot-8551832bd29508f36b6820e19d4af0525b1cba50.tar.gz
hsbot-8551832bd29508f36b6820e19d4af0525b1cba50.tar.bz2
hsbot-8551832bd29508f36b6820e19d4af0525b1cba50.zip
Add the IrcMsg as an optional parameter for an internal command.
Diffstat (limited to 'Hsbot/Types.hs')
-rw-r--r--Hsbot/Types.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Hsbot/Types.hs b/Hsbot/Types.hs
index 6b85af5..436bbdf 100644
--- a/Hsbot/Types.hs
+++ b/Hsbot/Types.hs
@@ -90,10 +90,11 @@ data IrcMsg = IrcMsg
-- | An internal command
data IntCmd = IntCmd
- { intCmdCmd :: String -- the internal command
- , intCmdFrom :: String -- who issues it
- , intCmdTo :: String -- who it is destinated to
- , intCmdMsg :: String -- the IrcMsg associated with the command
+ { intCmdCmd :: String -- the internal command
+ , intCmdFrom :: String -- who issues it
+ , intCmdTo :: String -- who it is destinated to
+ , intCmdMsg :: String -- the message to be transfered
+ , intCmdBotMsg :: Maybe IrcMsg -- An IrcMsg attached to the command
} deriving (Show)
data BotMsg = InputMsg IrcMsg | OutputMsg IrcMsg | InternalCmd IntCmd deriving (Show)