summaryrefslogtreecommitdiffstats
path: root/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-11-21 02:55:26 +0100
committersnowleo <schneeleo@gmail.com>2011-11-21 02:55:26 +0100
commite3fa24375342bdf58494c26cc125acb7d621cc87 (patch)
tree457ec062b09eb5c6aec08111e76e7991c61efb1a /EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java
parent0d0eb1e8bd50d0ed8cbb0a496fa8c6a349e88635 (diff)
downloadEssentials-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.java5
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()));
}
}
}