diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-21 02:55:26 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-21 02:55:26 +0100 |
commit | e3fa24375342bdf58494c26cc125acb7d621cc87 (patch) | |
tree | 457ec062b09eb5c6aec08111e76e7991c61efb1a /EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java | |
parent | 0d0eb1e8bd50d0ed8cbb0a496fa8c6a349e88635 (diff) | |
download | Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.tar Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.tar.gz Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.tar.lz Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.tar.xz Essentials-e3fa24375342bdf58494c26cc125acb7d621cc87.zip |
Switch to the new I18n class and format cleanup of all classes
Diffstat (limited to 'EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java')
-rw-r--r-- | EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java index a5daa263d..695969378 100644 --- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java +++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java @@ -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())); } } } |