diff options
author | Teravus Ovares (Dan Olivares) | 2010-10-13 20:29:55 -0400 |
---|---|---|
committer | Teravus Ovares (Dan Olivares) | 2010-10-13 20:29:55 -0400 |
commit | 46738bbd168873cdd73010165c120a5f8b96f3d3 (patch) | |
tree | c9668a82a06ec1577855b675f1f483ec7d871fba /OpenSim/Data/MySQL/MySQLPresenceData.cs | |
parent | * Normalizing endlines so git stops complaining about them being inconsistent. (diff) | |
parent | Added SOP.MediaUrl and Shape.Media to the deserialization (diff) | |
download | opensim-SC_OLD-46738bbd168873cdd73010165c120a5f8b96f3d3.zip opensim-SC_OLD-46738bbd168873cdd73010165c120a5f8b96f3d3.tar.gz opensim-SC_OLD-46738bbd168873cdd73010165c120a5f8b96f3d3.tar.bz2 opensim-SC_OLD-46738bbd168873cdd73010165c120a5f8b96f3d3.tar.xz |
Merge branch 'master' of ssh://MyConnection/var/git/opensim
Conflicts:
bin/OpenSimDefaults.ini
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLPresenceData.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLPresenceData.cs b/OpenSim/Data/MySQL/MySQLPresenceData.cs index 71caa1a..2390feb 100644 --- a/OpenSim/Data/MySQL/MySQLPresenceData.cs +++ b/OpenSim/Data/MySQL/MySQLPresenceData.cs | |||
@@ -78,9 +78,12 @@ namespace OpenSim.Data.MySQL | |||
78 | if (pd.Length == 0) | 78 | if (pd.Length == 0) |
79 | return false; | 79 | return false; |
80 | 80 | ||
81 | if (regionID == UUID.Zero) | ||
82 | return false; | ||
83 | |||
81 | MySqlCommand cmd = new MySqlCommand(); | 84 | MySqlCommand cmd = new MySqlCommand(); |
82 | 85 | ||
83 | cmd.CommandText = String.Format("update {0} set RegionID=?RegionID where `SessionID`=?SessionID", m_Realm); | 86 | cmd.CommandText = String.Format("update {0} set RegionID=?RegionID, LastSeen=NOW() where `SessionID`=?SessionID", m_Realm); |
84 | 87 | ||
85 | cmd.Parameters.AddWithValue("?SessionID", sessionID.ToString()); | 88 | cmd.Parameters.AddWithValue("?SessionID", sessionID.ToString()); |
86 | cmd.Parameters.AddWithValue("?RegionID", regionID.ToString()); | 89 | cmd.Parameters.AddWithValue("?RegionID", regionID.ToString()); |
@@ -90,6 +93,5 @@ namespace OpenSim.Data.MySQL | |||
90 | 93 | ||
91 | return true; | 94 | return true; |
92 | } | 95 | } |
93 | |||
94 | } | 96 | } |
95 | } | 97 | } |