|
@@ -91,7 +91,7 @@ namespace OpenSim.OfflineIM
|
|
{
|
|
{
|
|
reason = string.Empty;
|
|
reason = string.Empty;
|
|
|
|
|
|
- // TODO Check limits
|
|
|
|
|
|
+ // Check limits
|
|
UUID principalID = new UUID(im.toAgentID);
|
|
UUID principalID = new UUID(im.toAgentID);
|
|
long count = m_Database.GetCount("PrincipalID", principalID.ToString());
|
|
long count = m_Database.GetCount("PrincipalID", principalID.ToString());
|
|
if (count >= MAX_IM)
|
|
if (count >= MAX_IM)
|
|
@@ -117,6 +117,7 @@ namespace OpenSim.OfflineIM
|
|
|
|
|
|
OfflineIMData data = new OfflineIMData();
|
|
OfflineIMData data = new OfflineIMData();
|
|
data.PrincipalID = principalID;
|
|
data.PrincipalID = principalID;
|
|
|
|
+ data.FromID = new UUID(im.fromAgentID);
|
|
data.Data = new Dictionary<string, string>();
|
|
data.Data = new Dictionary<string, string>();
|
|
data.Data["Message"] = imXml;
|
|
data.Data["Message"] = imXml;
|
|
|
|
|