IMs from objects currently send their owner's ID as AgentID. There ought to be an OwnerID field, so that the AgentID could send the proper object ID.
ImprovedInstantMessage Low 254 NotTrusted Zerocoded
-AgentData Single
-AgentID LLUUID
-SessionID LLUUID
MessageBlock Single
-FromGroup BOOL
-ToAgentID LLUUID
OwnerID LLUUID <-- new field
-ParentEstateID U32
-RegionID LLUUID
-Position LLVector3
-Offline U8
-Dialog U8
-ID LLUUID
-Timestamp U32
-FromAgentName Variable 1
-Message Variable 2
-BinaryBucket Variable 2