From 7f5bc5a99034052a90f53d1d2203e2d7277b2ead Mon Sep 17 00:00:00 2001 From: Jonas Wielicki Date: Fri, 20 Apr 2018 13:31:28 +0200 Subject: Support for Ping and Software Version --- README.rst | 6 ++++++ echoz.sed | 20 +++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 26607ca..f7cb904 100644 --- a/README.rst +++ b/README.rst @@ -22,6 +22,12 @@ Usage ./echoz.sh user@domain password +Supported XEPs +-------------- + +* `XEP-0092 (Software Version) `_ +* `XEP-0199 (XMPP Ping) `_ + Testimonials ------------ diff --git a/echoz.sed b/echoz.sed index 2f665ea..a5193bd 100755 --- a/echoz.sed +++ b/echoz.sed @@ -120,7 +120,7 @@ s#^(.+)$##; # store result in hold space and fetch original header for further processing x; -/type='get'/bsend-error; +/type='get'/bhandle-iq-get; /type='set'/bsend-error; bmain-loop; @@ -136,3 +136,21 @@ bskip-iq; /<\/iq/bmain-loop; n; bskip-iq; + +:handle-iq-get; +n; +/$#sedbot0.0.1#; +p;n; +bskip-iq; + +:handle-ping; +g; +s#^$##; +p;n; +bskip-iq; -- cgit v1.2.3