diff --git a/Source/Framework/Logging/Log.cs b/Source/Framework/Logging/Log.cs index d6e0a49b4..7d145a96a 100644 --- a/Source/Framework/Logging/Log.cs +++ b/Source/Framework/Logging/Log.cs @@ -84,6 +84,14 @@ public class Log return logLevel != LogLevel.Disabled && logLevel <= level; } + public static void outLog(LogFilter type, LogLevel level, string text, params object[] args) + { + if (!ShouldLog(type, level)) + return; + + outMessage(type, level, text, args); + } + public static void outInfo(LogFilter type, string text, params object[] args) { if (!ShouldLog(type, LogLevel.Info)) @@ -374,7 +382,7 @@ enum AppenderFlags PrefixLogFilterType = 0x04, } -enum LogLevel +public enum LogLevel { Disabled = 0, Trace = 1, diff --git a/Source/Game/Entities/Player/Player.cs b/Source/Game/Entities/Player/Player.cs index dfab40e2f..cbc77c287 100644 --- a/Source/Game/Entities/Player/Player.cs +++ b/Source/Game/Entities/Player/Player.cs @@ -2367,6 +2367,7 @@ namespace Game.Entities case GossipOption.Tabarddesigner: case GossipOption.Auctioneer: case GossipOption.Transmogrifier: + case GossipOption.Mailbox: break; // no checks case GossipOption.Outdoorpvp: if (!Global.OutdoorPvPMgr.CanTalkTo(this, creature, menuItems)) @@ -2577,6 +2578,9 @@ namespace Game.Entities case GossipOption.Transmogrifier: GetSession().SendOpenTransmogrifier(guid); break; + case GossipOption.Mailbox: + GetSession().SendShowMailBox(guid); + break; } ModifyMoney(-cost);