mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-20 05:21:21 +02:00
Misc cleanup
This commit is contained in:
@@ -21,7 +21,7 @@ public class Commandsetxmpp extends EssentialsCommand
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
|
||||
EssentialsXMPP.getInstance().setAddress(user, args[0]);
|
||||
EssentialsXMPP.getInstance().setAddress(user.getBase(), args[0]);
|
||||
user.sendMessage("XMPP address set to " + args[0]);
|
||||
}
|
||||
}
|
||||
|
@@ -95,7 +95,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
|
||||
break;
|
||||
default:
|
||||
final IUser sender = parent.getUserByAddress(StringUtils.parseBareAddress(chat.getParticipant()));
|
||||
parent.broadcastMessage(sender, "=" + sender.getDisplayName() + ": " + message, StringUtils.parseBareAddress(chat.getParticipant()));
|
||||
parent.broadcastMessage(sender, "=" + sender.getBase().getDisplayName() + ": " + message, StringUtils.parseBareAddress(chat.getParticipant()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user