summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2014-12-11 18:59:16 +0100
committerrekado <rekado@elephly.net>2014-12-11 18:59:16 +0100
commitb2d20af884f494fc5178659663ff7d52046fe179 (patch)
treeb4f1b6ffa630df3cdf53f61d3bdb4300c8fe6f6a
parenta7d638168947b36cec0c17cc89bad20f113d23ae (diff)
return #f for ignored stanza handlers
-rw-r--r--xmpp.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmpp.scm b/xmpp.scm
index 91d8662..1e91713 100644
--- a/xmpp.scm
+++ b/xmpp.scm
@@ -40,8 +40,9 @@ is unregistered."
(map (lambda (pair)
(let ((predicate (car pair))
(handler (cdr pair)))
- (when (predicate stanza)
- (handler stanza))))
+ (if (predicate stanza)
+ (handler stanza)
+ #f)))
*stanza-handlers*))
(define (handle-stanza stanza)