diff options
author | Vitaly Takmazov | 2017-03-02 17:57:00 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-03-02 17:57:00 +0300 |
commit | 4ad9878d536588833838afc3ada1e4e3e19c26f9 (patch) | |
tree | 44f1e1174350895c3e02e531999fe3931b678a78 /juick-xmpp-bot/src | |
parent | c2f4735877781313ef0d0960ac3c0403944a495c (diff) |
juick-server: protocol cleanup
Diffstat (limited to 'juick-xmpp-bot/src')
-rw-r--r-- | juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java | 5 |
1 files changed, 2 insertions, 3 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 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) { |