aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/XMPPConnection.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-30 14:26:42 +0300
committerGravatar Vitaly Takmazov2018-03-30 14:26:53 +0300
commit4a9a81c3f2e24752bc8e74e8cd66079a15e0bf76 (patch)
tree637c2cc99d25b1e221f9450109c07f646f574d9d /juick-server/src/main/java/com/juick/server/XMPPConnection.java
parenta746598faef08af794c66d65ba9324bee5043b73 (diff)
server: process bot messages from router
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/XMPPConnection.java')
-rw-r--r--juick-server/src/main/java/com/juick/server/XMPPConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/XMPPConnection.java b/juick-server/src/main/java/com/juick/server/XMPPConnection.java
index c45fc7cd..406294a1 100644
--- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java
+++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java
@@ -180,7 +180,7 @@ public class XMPPConnection implements StanzaListener, NotificationListener {
router.addInboundMessageListener(e -> {
Message message = e.getMessage();
Jid jid = message.getTo();
- if (jid.getDomain().equals(router.getDomain().toEscapedString())) {
+ if (jid.getDomain().equals(router.getDomain().toEscapedString()) || jid.equals(jid)) {
com.juick.Message jmsg = message.getExtension(com.juick.Message.class);
if (jmsg != null) {
if (jid.getLocal().equals("recomm")) {