aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com/juick/components
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-31 14:30:36 +0300
committerGravatar Vitaly Takmazov2018-01-31 14:30:36 +0300
commitd1dae1f5bb9de1b8ff6893e821e9aaad3e37216c (patch)
treee185e5d7ef1d54bf64a3402f2454f11bc9ceb4c9 /juick-xmpp/src/main/java/com/juick/components
parent0c9e67eb323189993b48d71e866b2c4f97270e5e (diff)
core: drop jid from user properties
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/JuickBot.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
index 44755174..f0bac1f4 100644
--- a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
+++ b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
@@ -583,16 +583,16 @@ public class JuickBot implements StanzaListener, AutoCloseable {
String retValUpdated;
if (input[0].toLowerCase().equals("on")) {
newStatus = UserService.ActiveStatus.Active;
- retValUpdated = "Notifications are activated for " + user.getJid();
+ retValUpdated = "Notifications are activated for " + from.toEscapedString();
} else {
newStatus = UserService.ActiveStatus.Inactive;
- retValUpdated = "Notifications are disabled for " + user.getJid();
+ retValUpdated = "Notifications are disabled for " + from.toEscapedString();
}
if (userService.setActiveStatusForJID(from.toEscapedString(), newStatus)) {
return retValUpdated;
} else {
- return String.format("Subscriptions status for %s was not changed", user.getJid());
+ return String.format("Subscriptions status for %s was not changed", from.toEscapedString());
}
}
@UserCommand(pattern = "^\\@([^\\s\\n\\+]+)(\\+?)$",