diff options
Diffstat (limited to 'xmppServer.hs')
-rw-r--r-- | xmppServer.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmppServer.hs b/xmppServer.hs index 464d3b1d..3a16aca5 100644 --- a/xmppServer.hs +++ b/xmppServer.hs | |||
@@ -26,7 +26,9 @@ main = runResourceT $ do | |||
26 | XMPPServerParameters | 26 | XMPPServerParameters |
27 | { xmppChooseResourceName = \k sock desired -> return $ "nobody@" <> hostname <> "/tty666" | 27 | { xmppChooseResourceName = \k sock desired -> return $ "nobody@" <> hostname <> "/tty666" |
28 | , xmppTellMyNameToClient = return hostname | 28 | , xmppTellMyNameToClient = return hostname |
29 | , xmppTellMyNameToPeer = \addr -> return "localhost" | 29 | , xmppTellMyNameToPeer = \addr -> return $ addrToText addr |
30 | , xmppTellClientHisName = \k -> return $ "nobody@" <> hostname <> "/tty666" | ||
31 | , xmppTellPeerHisName = return . peerKeyToText | ||
30 | , xmppNewConnection = \k outchan -> return () | 32 | , xmppNewConnection = \k outchan -> return () |
31 | , xmppEOF = \k -> return () | 33 | , xmppEOF = \k -> return () |
32 | , xmppRosterBuddies = \k -> return [] | 34 | , xmppRosterBuddies = \k -> return [] |