aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-02-07 09:39:43 +0300
committerGravatar Vitaly Takmazov2017-02-07 09:39:43 +0300
commit81ff64a57608cb6480f28af6fa46905c067e76c4 (patch)
tree16afd346f2f94bbd53e300cc61d148c33ae726ca /juick-xmpp/src/main/java
parent37fa69d19152202384308c5b368943ad1348c74b (diff)
juick-xmpp: stop processing error messages
Diffstat (limited to 'juick-xmpp/src/main/java')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/s2s/JuickBot.java2
1 files changed, 1 insertions, 1 deletions
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;
}