mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-29 23:59:06 +02:00
Switch to the new I18n class and format cleanup of all classes
This commit is contained in:
@@ -56,7 +56,8 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
|
||||
}
|
||||
if (chat != null)
|
||||
{
|
||||
if (!connection.isConnected()) {
|
||||
if (!connection.isConnected())
|
||||
{
|
||||
disconnect();
|
||||
connect();
|
||||
}
|
||||
@@ -90,7 +91,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.getDisplayName() + ": " + message, StringUtils.parseBareAddress(chat.getParticipant()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user