From be866550e68feec4193b9799b3034d19c9687885 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 10 Sep 2016 23:24:33 +1000 Subject: [PATCH] Fix using /hide with different name colour revealing you are hidden on IRC. --- Commands/Moderation/CmdHide.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Commands/Moderation/CmdHide.cs b/Commands/Moderation/CmdHide.cs index 3ca8e9737..d39405758 100644 --- a/Commands/Moderation/CmdHide.cs +++ b/Commands/Moderation/CmdHide.cs @@ -65,7 +65,7 @@ namespace MCGalaxy.Commands Chat.MessageOps("To Ops -" + p.ColoredName + "%S- is now &finvisible%S."); string discMsg = PlayerDB.GetLogoutMessage(p); Player.SendChatFrom(p, "&c- " + p.FullName + " %S" + discMsg, false); - Server.IRC.Say(p.DisplayName + " left the game (" + discMsg + ")"); + Server.IRC.Say(p.DisplayName + " %Sleft the game (" + discMsg + "%S)"); if (messageOps && !p.opchat) opchat.Use(p, message); Server.hidden.AddOrReplace(p.name); } else { @@ -77,7 +77,7 @@ namespace MCGalaxy.Commands Chat.MessageAdmins("To Admins -" + p.ColoredName + "%S- is now &fvisible%S."); Player.SendChatFrom(p, "&a+ " + p.FullName + " %S" + PlayerDB.GetLoginMessage(p), false); - Server.IRC.Say(p.DisplayName + " joined the game"); + Server.IRC.Say(p.DisplayName + " %Sjoined the game"); if (messageOps && p.opchat) opchat.Use(p, message); if (p.adminchat) adminchat.Use(p, message); Server.hidden.Remove(p.name);