//
// Radegast Metaverse Client
-// Copyright (c) 2009-2012, Radegast Development Team
+// Copyright (c) 2009-2014, Radegast Development Team
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
null != client.Self.MuteList.Find(me => me.Type == MuteType.Resident && me.ID == e.SourceID)
) return;
+ // Check if it's script debug
+ if (e.Type == ChatType.Debug && !instance.GlobalSettings["show_script_errors"])
+ {
+ return;
+ }
+
// Check if sender object is muted
if (e.SourceType == ChatSourceType.Object &&
null != client.Self.MuteList.Find(me =>
{
instance.RLV.TryProcessCMD(e);
#if !DEBUG
- return;
+ if (!instance.RLV.EnabledDebugCommands) {
+ return;
+ }
#endif
}
{
item.Style = ChatBufferTextStyle.OwnerSay;
}
+ else if (e.Type == ChatType.Debug)
+ {
+ item.Style = ChatBufferTextStyle.Error;
+ }
else
{
item.Style = ChatBufferTextStyle.ObjectChat;