From 4435121c840aac5de4ac69b3463515f5cde060da Mon Sep 17 00:00:00 2001
From: KHobbits <rob@khobbits.co.uk>
Date: Mon, 16 Jan 2012 19:42:15 +0000
Subject: Stripping vanilla colours from /msg

---
 .../com/earth2me/essentials/chat/EssentialsChatPlayer.java    | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'EssentialsChat/src')

diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
index 2d6e1ae4e..432e2309c 100644
--- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
+++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayer.java
@@ -112,7 +112,7 @@ public abstract class EssentialsChatPlayer extends PlayerListener
 		logger.info(_("localFormat", sender.getName(), event.getMessage()));
 		final Location loc = sender.getLocation();
 		final World world = loc.getWorld();
-		
+
 		for (Player onlinePlayer : server.getOnlinePlayers())
 		{
 			String type = "[L]";
@@ -123,11 +123,14 @@ public abstract class EssentialsChatPlayer extends PlayerListener
 				continue;
 			}
 			if (!user.equals(sender))
-			{				
+			{
 				final Location playerLoc = user.getLocation();
-				if (playerLoc.getWorld() != world) { continue; }
+				if (playerLoc.getWorld() != world)
+				{
+					continue;
+				}
 				final double delta = playerLoc.distanceSquared(loc);
-				
+
 				if (delta > radius)
 				{
 					if (user.isAuthorized("essentials.chat.spy"))
-- 
cgit v1.2.3