summaryrefslogtreecommitdiffstats
path: root/EssentialsXMPP
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2012-11-27 19:51:32 +0100
committersnowleo <schneeleo@gmail.com>2012-11-27 19:54:32 +0100
commitd238d353c9b22a4483f5b77ba2b5a1e5a9f50470 (patch)
treea40d44a390085a42b108219a779df302d83f1606 /EssentialsXMPP
parent37be9811aa1aae57d41dadc1b3dddd3a81f1c28d (diff)
downloadEssentials-d238d353c9b22a4483f5b77ba2b5a1e5a9f50470.tar
Essentials-d238d353c9b22a4483f5b77ba2b5a1e5a9f50470.tar.gz
Essentials-d238d353c9b22a4483f5b77ba2b5a1e5a9f50470.tar.lz
Essentials-d238d353c9b22a4483f5b77ba2b5a1e5a9f50470.tar.xz
Essentials-d238d353c9b22a4483f5b77ba2b5a1e5a9f50470.zip
Add log color removal.
(This could already be done with the bukkit setting "log-strip-color")
Diffstat (limited to 'EssentialsXMPP')
-rw-r--r--EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java
index 164f40c2a..673ef3377 100644
--- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java
+++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java
@@ -12,8 +12,8 @@ import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
import org.bukkit.entity.Player;
-import org.jivesoftware.smack.Roster.SubscriptionMode;
import org.jivesoftware.smack.*;
+import org.jivesoftware.smack.Roster.SubscriptionMode;
import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.packet.Presence;
import org.jivesoftware.smack.util.StringUtils;
@@ -263,7 +263,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
for (LogRecord logRecord : copy)
{
final String message = String.format("[" + logRecord.getLevel().getLocalizedName() + "] " + logRecord.getMessage(), logRecord.getParameters());
- if (!XMPPManager.this.sendMessage(user, message))
+ if (!XMPPManager.this.sendMessage(user, Util.stripLogColorFormat(message)))
{
failedUsers.add(user);
break;