summaryrefslogtreecommitdiff
path: root/Presence/EventUtil.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Presence/EventUtil.hs')
-rw-r--r--Presence/EventUtil.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Presence/EventUtil.hs b/Presence/EventUtil.hs
index a1c48e33..adcae1d3 100644
--- a/Presence/EventUtil.hs
+++ b/Presence/EventUtil.hs
@@ -29,6 +29,12 @@ isServerIQOf (EventBeginElement name attrs) testType
29 = True 29 = True
30isServerIQOf _ _ = False 30isServerIQOf _ _ = False
31 31
32isClientIQOf (EventBeginElement name attrs) testType
33 | name=="{jabber:client}iq"
34 && matchAttrib "type" testType attrs
35 = True
36isClientIQOf _ _ = False
37
32matchAttrib name value attrs = 38matchAttrib name value attrs =
33 case List.find ( (==name) . fst) attrs of 39 case List.find ( (==name) . fst) attrs of
34 Just (_,[ContentText x]) | x==value -> True 40 Just (_,[ContentText x]) | x==value -> True