summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index d5310f57..ed7d5e63 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -1027,10 +1027,16 @@ main = runResourceT $ liftBaseWith $ \resT -> do
1027 1027
1028 announcer <- forkAnnouncer 1028 announcer <- forkAnnouncer
1029 1029
1030 let toxman = ToxManager
1031 { activateAccount = \k pubkey -> return ()
1032 , deactivateAccount = \k pubkey -> return ()
1033 , setToxConnectionPolicy = \me them policy -> return ()
1034 }
1035
1030 -- XMPP initialization 1036 -- XMPP initialization
1031 cw <- newConsoleWriter 1037 cw <- newConsoleWriter
1032 serverVar <- atomically $ newEmptyTMVar 1038 serverVar <- atomically $ newEmptyTMVar
1033 state <- newPresenceState cw serverVar 1039 state <- newPresenceState cw (Just toxman) serverVar
1034 1040
1035 -- XMPP stanza handling 1041 -- XMPP stanza handling
1036 sv <- resT $ xmppServer (presenceHooks state (verbosity opts)) 1042 sv <- resT $ xmppServer (presenceHooks state (verbosity opts))