From 7293d22f1aa731610849a8657b8ae462eb67eee2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 19 Dec 2016 15:02:56 +0300 Subject: juick-server: drop json part from JuickProtocol reply --- juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-xmpp-bot/src/main/java') diff --git a/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java b/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java index 6b716630..9f5d076a 100644 --- a/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java +++ b/juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java @@ -76,7 +76,7 @@ public class XMPPBot implements AutoCloseable { try { ProtocolReply reply = juickProtocol.getReply(user, text); Message replyMessage = new Message(message.getFrom(), Message.Type.CHAT); - replyMessage.setBody(reply.getDescription()); + replyMessage.setBody(reply.getResult()); replyMessage.setFrom(juickJid); component.send(replyMessage); } catch (InvocationTargetException | IllegalAccessException | NoSuchMethodException | JsonProcessingException ex) { -- cgit v1.2.3