From 09f67c97236e1a5444e5eaf6af4ff2dd5b646af8 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sat, 8 Jun 2013 22:31:19 +0100 Subject: Split util classes. --- EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'EssentialsXMPP/src') 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; -- cgit v1.2.3