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 | 071254ed8d61b8f0c42809c1bc1363752d16bb0a (patch) | |
tree | de5ca0785d9def0a96617c3d224523dc9852d71a /EssentialsXMPP | |
parent | 93980629d31b9a0d378fad8ef70455444aff1634 (diff) | |
download | Essentials-071254ed8d61b8f0c42809c1bc1363752d16bb0a.tar Essentials-071254ed8d61b8f0c42809c1bc1363752d16bb0a.tar.gz Essentials-071254ed8d61b8f0c42809c1bc1363752d16bb0a.tar.lz Essentials-071254ed8d61b8f0c42809c1bc1363752d16bb0a.tar.xz Essentials-071254ed8d61b8f0c42809c1bc1363752d16bb0a.zip |
Fix xmpp format stripping
Diffstat (limited to 'EssentialsXMPP')
-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; } } |