From d1dae1f5bb9de1b8ff6893e821e9aaad3e37216c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 31 Jan 2018 14:30:36 +0300 Subject: core: drop jid from user properties --- juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-xmpp/src') 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\\+]+)(\\+?)$", -- cgit v1.2.3