diff options
author | KHobbits <rob@khobbits.co.uk> | 2013-06-08 22:31:19 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-06-08 22:31:19 +0100 |
commit | 09f67c97236e1a5444e5eaf6af4ff2dd5b646af8 (patch) | |
tree | d8a7d8db862659634679abd9386fa41ef811dc20 /EssentialsXMPP/src/com/earth2me | |
parent | 98e427e831c43a619a57aacc034535c4d5d09213 (diff) | |
download | Essentials-09f67c97236e1a5444e5eaf6af4ff2dd5b646af8.tar Essentials-09f67c97236e1a5444e5eaf6af4ff2dd5b646af8.tar.gz Essentials-09f67c97236e1a5444e5eaf6af4ff2dd5b646af8.tar.lz Essentials-09f67c97236e1a5444e5eaf6af4ff2dd5b646af8.tar.xz Essentials-09f67c97236e1a5444e5eaf6af4ff2dd5b646af8.zip |
Split util classes.
Diffstat (limited to 'EssentialsXMPP/src/com/earth2me')
-rw-r--r-- | EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java index ffe651d5b..21798521e 100644 --- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java +++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java @@ -4,7 +4,8 @@ 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 com.earth2me.essentials.utils.StringUtil; +import com.earth2me.essentials.utils.FormatUtil; import java.io.File; import java.util.*; import java.util.logging.Handler; @@ -64,7 +65,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager disconnect(); connect(); } - chat.sendMessage(Util.stripFormat(message)); + chat.sendMessage(FormatUtil.stripFormat(message)); return true; } } @@ -266,7 +267,7 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager for (LogRecord logRecord : copy) { final String message = formatter.format(logRecord); - if (!XMPPManager.this.sendMessage(user, Util.stripLogColorFormat(message))) + if (!XMPPManager.this.sendMessage(user, FormatUtil.stripLogColorFormat(message))) { failedUsers.add(user); break; |