aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-04-17 08:53:36 +0300
committerGravatar Vitaly Takmazov2021-04-17 08:53:36 +0300
commit41add777d1aae50c0e5fae0a2b921c78da53efaf (patch)
treea0c75004003d031aebb28ae11fb402bd7729d298 /src/main
parent7203299e6ec544d36f4889e02b946bb9b6061f09 (diff)
Update XMPP spam warning
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/XMPPManager.java2
-rw-r--r--src/main/java/com/juick/util/xmpp/iq/package-info.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/XMPPManager.java b/src/main/java/com/juick/XMPPManager.java
index 2565f87e..8b775495 100644
--- a/src/main/java/com/juick/XMPPManager.java
+++ b/src/main/java/com/juick/XMPPManager.java
@@ -156,7 +156,7 @@ public class XMPPManager implements NotificationListener {
xmpp.addIQHandler(MessageQuery.class, iq -> {
Message warningMessage = new Message(iq.getFrom(), Message.Type.CHAT);
warningMessage.setFrom(jid);
- warningMessage.setBody("Your XMPP client constantly polls us with XMPP query which is unsupported for years, please find http://juick.com/query#messages in your client code and remove that");
+ warningMessage.setBody("Please, stop this shit");
xmpp.send(warningMessage);
return iq.createError(new StanzaError(Condition.BAD_REQUEST, "Please stop this spam"));
});
diff --git a/src/main/java/com/juick/util/xmpp/iq/package-info.java b/src/main/java/com/juick/util/xmpp/iq/package-info.java
index 486da193..6d0395b1 100644
--- a/src/main/java/com/juick/util/xmpp/iq/package-info.java
+++ b/src/main/java/com/juick/util/xmpp/iq/package-info.java
@@ -16,7 +16,7 @@
*/
@XmlAccessorType(XmlAccessType.FIELD)
-@XmlSchema(namespace = "http://juick.com/query#messages", elementFormDefault = XmlNsForm.QUALIFIED)
+@XmlSchema(namespace = "http://juick.com/", elementFormDefault = XmlNsForm.QUALIFIED)
package com.juick.util.xmpp.iq;
import javax.xml.bind.annotation.XmlAccessType;