summaryrefslogtreecommitdiff
path: root/Presence/XMPP.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-07-01 00:52:38 -0400
committerjoe <joe@jerkface.net>2013-07-01 00:52:38 -0400
commitd3f56faa47acc1494f9b0173b0e30068de85ca78 (patch)
tree4730ca017ba4d989f32a2452c26ff646f40c2f47 /Presence/XMPP.hs
parentd0eb0e8d0db2fdd55511d8176467675816b0a179 (diff)
removed debug noise on pings
Diffstat (limited to 'Presence/XMPP.hs')
-rw-r--r--Presence/XMPP.hs11
1 files changed, 0 insertions, 11 deletions
diff --git a/Presence/XMPP.hs b/Presence/XMPP.hs
index 2917d833..01852f43 100644
--- a/Presence/XMPP.hs
+++ b/Presence/XMPP.hs
@@ -329,19 +329,8 @@ handleIQGet session cmdChan tag = do
329 liftIO . atomically . writeTChan cmdChan . Send $ iq_service_unavailable host stanza_id Nothing req 329 liftIO . atomically . writeTChan cmdChan . Send $ iq_service_unavailable host stanza_id Nothing req
330 case tagName child of 330 case tagName child of
331 -- "{http://jabber.org/protocol/disco#items}query" -> liftIO $ putStrLn "iq-get-query-items" 331 -- "{http://jabber.org/protocol/disco#items}query" -> liftIO $ putStrLn "iq-get-query-items"
332 {-
333 IN client:
334 <iq type="get" id="purple8f8224d6"
335 ><ping xmlns="urn:xmpp:ping"/></iq>
336
337
338 OUT client:
339 <iq from='blackbird' id='purple8f8224d6' type='result'/>
340 -}
341 "{urn:xmpp:ping}ping" -> liftIO $ do 332 "{urn:xmpp:ping}ping" -> liftIO $ do
342 putStrLn ("iq-ping: "++show (stanza_id,child))
343 let mjid = lookupAttrib "from" (tagAttrs tag) 333 let mjid = lookupAttrib "from" (tagAttrs tag)
344 L.putStrLn $ "PING! from=" <++> bshow mjid
345 let pong = [ EventBeginElement "{jabber:client}iq" 334 let pong = [ EventBeginElement "{jabber:client}iq"
346 $ (case mjid of 335 $ (case mjid of
347 Just jid -> (("to",[ContentText jid]):) 336 Just jid -> (("to",[ContentText jid]):)