summaryrefslogtreecommitdiff
path: root/HsBot
diff options
context:
space:
mode:
authorpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-05-15 16:53:06 +0000
committerpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-05-15 16:53:06 +0000
commitb2f17a42ab980b2dccfbd265f63a33beac0aaa88 (patch)
tree5146683f3d19c0c2d50cb36b20c4755105fdee41 /HsBot
parent502eae3f286cca6a1843ed795ec20fbc3abccc5d (diff)
added initial StoreMessages callback.
this callback will store all messages into a SQL database sooner or later. git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@61 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'HsBot')
-rw-r--r--HsBot/Callbacks/StoreMessages.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/HsBot/Callbacks/StoreMessages.hs b/HsBot/Callbacks/StoreMessages.hs
new file mode 100644
index 0000000..b5d043a
--- /dev/null
+++ b/HsBot/Callbacks/StoreMessages.hs
@@ -0,0 +1,9 @@
+module HsBot.Callbacks.StoreMessages (storeMessages) where
+
+import HsBot.Base.Env
+import HsBot.Base.State
+
+storeMessages :: String -> SendMessage -> Env -> IO Env
+storeMessages str sendMessage env@(Env state _) = do
+ return (env)
+