aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp-bot/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-xmpp-bot/src/main/java/com/juick')
-rw-r--r--juick-xmpp-bot/src/main/java/com/juick/components/XMPPBot.java5
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) {