From 4ad9878d536588833838afc3ada1e4e3e19c26f9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 2 Mar 2017 17:57:00 +0300 Subject: juick-server: protocol cleanup --- juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (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 d5c4c045..916f5029 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 @@ -4,7 +4,6 @@ import com.juick.User; import com.juick.server.helpers.UserInfo; import com.juick.server.protocol.JuickProtocol; import com.juick.server.protocol.ProtocolListener; -import com.juick.server.protocol.ProtocolReply; import com.juick.service.PMQueriesService; import com.juick.service.UserService; import org.apache.commons.io.IOUtils; @@ -81,9 +80,9 @@ public class XMPPBot implements AutoCloseable, ProtocolListener { } } else { try { - ProtocolReply reply = juickProtocol.getReply(user, text); + String reply = juickProtocol.getReply(user, text); Message replyMessage = new Message(message.getFrom(), Message.Type.CHAT); - replyMessage.setBody(reply.getResult()); + replyMessage.setBody(reply); replyMessage.setFrom(juickJid); component.send(replyMessage); } catch (InvocationTargetException | IllegalAccessException | NoSuchMethodException ex) { -- cgit v1.2.3