Prevent normal (Text) IM from being logged by the group message module in

debug mode.
Fixes Mantis #3609
0.6.5-rc1
Melanie Thielker 2009-05-09 17:02:03 +00:00
parent e4236a4233
commit 93d54d7652
1 changed files with 2 additions and 1 deletions

View File

@ -496,7 +496,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
private void DebugGridInstantMessage(GridInstantMessage im)
{
if (m_debugEnabled)
// Don't log any normal IMs (privacy!)
if (m_debugEnabled && im.dialog != (byte)InstantMessageDialog.MessageFromAgent)
{
m_log.WarnFormat("[GROUPS-MESSAGING]: IM: fromGroup({0})", im.fromGroup ? "True" : "False");
m_log.WarnFormat("[GROUPS-MESSAGING]: IM: Dialog({0})", ((InstantMessageDialog)im.dialog).ToString());