diff options
-rw-r--r-- | xmpp.scm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -53,10 +53,11 @@ is unregistered." *stanza-handlers*)) (define (handle-stanza stanza) - "Check if handler for this stanza id exists and run it if it exists. Then try all other handlers." + "Check if handler for this stanza id exists and run it if it exists. +Then try all other handlers." (let ((id-handler (hash-ref *stanza-id-handlers* (stanza-id stanza)))) (catch 'halt - (lambda () + (lambda _ (when id-handler (id-handler stanza)) (try-stanza-handlers stanza)) (lambda (key . args) |