1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-17 20:11:21 +02:00

Fix xmpp format stripping

This commit is contained in:
ementalo
2012-06-17 18:43:01 +01:00
parent cbe64fb1de
commit 330c7271a7

View File

@@ -2,6 +2,7 @@ package com.earth2me.essentials.xmpp;
import com.earth2me.essentials.api.IReload;
import com.earth2me.essentials.api.IUser;
import com.earth2me.essentials.utils.Util;
import java.io.File;
import java.util.*;
import java.util.logging.Handler;
@@ -59,7 +60,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager
disconnect();
connect();
}
chat.sendMessage(message.replaceAll("§[0-9a-f]", ""));
chat.sendMessage(Util.stripFormat(message));
return true;
}
}