diff options
author | Vitaly Takmazov | 2016-12-19 15:02:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-19 15:02:56 +0300 |
commit | 7293d22f1aa731610849a8657b8ae462eb67eee2 (patch) | |
tree | 49e36037b6cc09c8c37093a4d34a713803382d7a /juick-xmpp-bot/src/main/java/com | |
parent | 16d02ab9e31cd4a68334575499d039d48a5fb0a9 (diff) |
juick-server: drop json part from JuickProtocol reply
Diffstat (limited to 'juick-xmpp-bot/src/main/java/com')
-rw-r--r-- | juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |