diff options
author | snowleo <schneeleo@gmail.com> | 2012-06-08 00:34:25 +0300 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-06-08 00:34:25 +0300 |
commit | 1abc3f4c8fdbd20a0268609d8ab14928a29d6a54 (patch) | |
tree | 9466e374622244e6b90a1789c3e1a0ede98caa85 /EssentialsXMPP/src/com | |
parent | 26d8d8e4b4a0e6461b959d2874bae01017208c47 (diff) | |
download | Essentials-1abc3f4c8fdbd20a0268609d8ab14928a29d6a54.tar Essentials-1abc3f4c8fdbd20a0268609d8ab14928a29d6a54.tar.gz Essentials-1abc3f4c8fdbd20a0268609d8ab14928a29d6a54.tar.lz Essentials-1abc3f4c8fdbd20a0268609d8ab14928a29d6a54.tar.xz Essentials-1abc3f4c8fdbd20a0268609d8ab14928a29d6a54.zip |
Fix xmpp format stripping
Diffstat (limited to 'EssentialsXMPP/src/com')
-rw-r--r-- | EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java index bb44d3127..164f40c2a 100644 --- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java +++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java @@ -4,6 +4,7 @@ import com.earth2me.essentials.Console; import com.earth2me.essentials.EssentialsConf; import com.earth2me.essentials.IConf; import com.earth2me.essentials.IUser; +import com.earth2me.essentials.Util; import java.io.File; import java.util.*; import java.util.logging.Handler; @@ -61,7 +62,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; } } |