summaryrefslogtreecommitdiff
path: root/Main.hs
diff options
context:
space:
mode:
authorpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-14 15:36:37 +0000
committerpb <pb@9f8f72e9-4bf4-416e-b76e-7d4203597157>2010-03-14 15:36:37 +0000
commitd3dc3957e68ea83e348897b3b9d6fe3e280b5d11 (patch)
tree871775fc26b724f6ca2181cbda62516f0b6f764a /Main.hs
parent29e84fb4a5fc81ebadfc4266b0b753eef44fa558 (diff)
git-svn-id: https://ssl.buetow.org/repos/hsbot/trunk@32 9f8f72e9-4bf4-416e-b76e-7d4203597157
Diffstat (limited to 'Main.hs')
-rw-r--r--Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Main.hs b/Main.hs
index b3c6f7c..d515037 100644
--- a/Main.hs
+++ b/Main.hs
@@ -46,6 +46,6 @@ dispatch cmd sendMessage env@(Env state conf _) =
exitWith ExitSuccess
in case cmdGet ("!" ++ cmd) commands of
- Just (Cmd _ _ dispatchFunction) -> dispatchFunction state
- Nothing -> dispatch "i" sendMessage env
+ Just (Cmd _ _ cmdAction) -> cmdAction state
+ Nothing -> return ()