From 81ff64a57608cb6480f28af6fa46905c067e76c4 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 7 Feb 2017 09:39:43 +0300 Subject: juick-xmpp: stop processing error messages --- juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-xmpp/src/main/java/com/juick/components') diff --git a/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java b/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java index 9a970855..af53af33 100644 --- a/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java +++ b/juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java @@ -159,7 +159,7 @@ public class JuickBot implements StanzaListener, AutoCloseable { } public boolean incomingMessage(Message msg) { - if (StringUtils.isBlank(msg.getBody())) { + if (StringUtils.isBlank(msg.getBody()) || msg.getType().equals(Message.Type.ERROR)) { return false; } -- cgit v1.2.3