aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs
diff options
context:
space:
mode:
authorOren Hurvitz2013-10-29 16:03:58 +0200
committerJustin Clark-Casey (justincc)2014-01-16 00:16:33 +0000
commit46c2791fe2f9ea92535d3933602e24dcba8f96f9 (patch)
treef57849d8fe1568a7ce49aceda182f2d81e885f70 /OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs
parentFixed offline IM (diff)
downloadopensim-SC-46c2791fe2f9ea92535d3933602e24dcba8f96f9.zip
opensim-SC-46c2791fe2f9ea92535d3933602e24dcba8f96f9.tar.gz
opensim-SC-46c2791fe2f9ea92535d3933602e24dcba8f96f9.tar.bz2
opensim-SC-46c2791fe2f9ea92535d3933602e24dcba8f96f9.tar.xz
In the offline message table, store the sender.
This data is useful for preventing abuse (e.g., someone who sends too many messages), or for deleting message if their sender has been deleted.
Diffstat (limited to '')
-rw-r--r--OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs b/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs
index d36f9a4..df0c53f 100644
--- a/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs
+++ b/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs
@@ -91,7 +91,7 @@ namespace OpenSim.OfflineIM
91 { 91 {
92 reason = string.Empty; 92 reason = string.Empty;
93 93
94 // TODO Check limits 94 // Check limits
95 UUID principalID = new UUID(im.toAgentID); 95 UUID principalID = new UUID(im.toAgentID);
96 long count = m_Database.GetCount("PrincipalID", principalID.ToString()); 96 long count = m_Database.GetCount("PrincipalID", principalID.ToString());
97 if (count >= MAX_IM) 97 if (count >= MAX_IM)
@@ -117,6 +117,7 @@ namespace OpenSim.OfflineIM
117 117
118 OfflineIMData data = new OfflineIMData(); 118 OfflineIMData data = new OfflineIMData();
119 data.PrincipalID = principalID; 119 data.PrincipalID = principalID;
120 data.FromID = new UUID(im.fromAgentID);
120 data.Data = new Dictionary<string, string>(); 121 data.Data = new Dictionary<string, string>();
121 data.Data["Message"] = imXml; 122 data.Data["Message"] = imXml;
122 123