diff options
Diffstat (limited to 'juick-xmpp')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 6 |
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\\+]+)(\\+?)$", |