aboutsummaryrefslogtreecommitdiff
path: root/juick-server-xmpp/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-09 19:24:49 +0300
committerGravatar Vitaly Takmazov2018-04-09 19:24:49 +0300
commita8094e3b0e3c81d8f77f9ccf07d2d5903a4ff5fa (patch)
tree0175256f4ad3900b8f9f39ed139618fab15f8cbf /juick-server-xmpp/src/main
parent7eb191f93473f61febeb8bd195fc1b3127cfcc6d (diff)
fix events from web
Diffstat (limited to 'juick-server-xmpp/src/main')
-rw-r--r--juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java b/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java
index a96e3180..77861373 100644
--- a/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java
+++ b/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java
@@ -542,7 +542,7 @@ public class XMPPConnection implements StanzaListener, NotificationListener {
} else {
user_from = userService.getUserByJID(msg.getFrom().asBareJid().toEscapedString());
}
- if (user_from == null || user_from.getUid() == 0) {
+ if ((user_from == null || user_from.getUid() == 0) && !msg.getFrom().equals(jid)) {
String signuphash = userService.getSignUpHashByJID(msg.getFrom().asBareJid().toEscapedString());
return makeReply(msg.getFrom(), "Для того, чтобы начать пользоваться сервисом, пожалуйста пройдите быструю регистрацию: http://juick.com/signup?type=xmpp&hash=" + signuphash + "\nЕсли у вас уже есть учетная запись на Juick, вы сможете присоединить этот JabberID к ней.\n\nTo start using Juick, please sign up: http://juick.com/signup?type=xmpp&hash=" + signuphash + "\nIf you already have an account on Juick, you will be proposed to attach this JabberID to your existing account.");
}