From d4c5b8f4dadc06dffee9e3f8b71aa4c2bff9abe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Thu, 11 Aug 2016 11:28:46 +0200 Subject: [PATCH 1/2] =?UTF-8?q?Rename=20the=20ad-hoc=20status=20=E2=80=9Ce?= =?UTF-8?q?xecute=E2=80=9D=20into=20=E2=80=9Cexecuting=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From http://xmpp.org/extensions/xep-0050.html#desc-command only “executing” is valid. --- src/xmpp/ad-hoc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmpp/ad-hoc.go b/src/xmpp/ad-hoc.go index 028bee1..2466408 100644 --- a/src/xmpp/ad-hoc.go +++ b/src/xmpp/ad-hoc.go @@ -11,7 +11,7 @@ const ( ActionAdHocNext = "next" ActionAdHocCancel = "cancel" - StatusAdHocExecute = "execute" + StatusAdHocExecute = "executing" StatusAdHocCompleted = "completed" StatusAdHocCanceled = "canceled" From 8b007c8bc8949b243533659f477d38ced9d74d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Thu, 11 Aug 2016 11:29:41 +0200 Subject: [PATCH 2/2] Add text-private in the possible ad-hoc field types --- src/xmpp/ad-hoc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xmpp/ad-hoc.go b/src/xmpp/ad-hoc.go index 2466408..182089b 100644 --- a/src/xmpp/ad-hoc.go +++ b/src/xmpp/ad-hoc.go @@ -30,6 +30,7 @@ const ( TypeAdHocFieldListSingle = "list-single" TypeAdHocFieldTextSingle = "text-single" TypeAdHocFieldJidSingle = "jid-single" + TypeAdHocFieldTextPrivate = "text-private" ) type AdHocCommand struct {