aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/PGSQL/PGSQLPresenceData.cs
diff options
context:
space:
mode:
authoronefang2020-09-09 20:24:55 +1000
committeronefang2020-09-09 20:24:55 +1000
commitbdb365015b67d5b9b8646c97fc41047bb16f6175 (patch)
treefc656cc7ed3c386e61111c369cfb334b780c6ba4 /OpenSim/Data/PGSQL/PGSQLPresenceData.cs
parentRemove various limits. (diff)
downloadopensim-SC-bdb365015b67d5b9b8646c97fc41047bb16f6175.zip
opensim-SC-bdb365015b67d5b9b8646c97fc41047bb16f6175.tar.gz
opensim-SC-bdb365015b67d5b9b8646c97fc41047bb16f6175.tar.bz2
opensim-SC-bdb365015b67d5b9b8646c97fc41047bb16f6175.tar.xz
Bandaid for ghost users, check and remove them from Presence when they log on.
Once again OOP proves it's worse that spaghetti, by cutting up the spaghetti and hiding it all over the kitchen. Note the commented out bits from GateKeeperService.cs, this stuff is checked TWICE, though this time is for HGers, or not.
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/PGSQL/PGSQLPresenceData.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Data/PGSQL/PGSQLPresenceData.cs b/OpenSim/Data/PGSQL/PGSQLPresenceData.cs
index ebbe8d3..51154af 100644
--- a/OpenSim/Data/PGSQL/PGSQLPresenceData.cs
+++ b/OpenSim/Data/PGSQL/PGSQLPresenceData.cs
@@ -60,6 +60,16 @@ namespace OpenSim.Data.PGSQL
60 return ret[0]; 60 return ret[0];
61 } 61 }
62 62
63 public PresenceData GetByUser(UUID userID)
64 {
65 PresenceData[] ret = Get("UserID", userID.ToString());
66
67 if (ret.Length == 0)
68 return null;
69
70 return ret[0];
71 }
72
63 public void LogoutRegionAgents(UUID regionID) 73 public void LogoutRegionAgents(UUID regionID)
64 { 74 {
65 using (NpgsqlConnection conn = new NpgsqlConnection(m_ConnectionString)) 75 using (NpgsqlConnection conn = new NpgsqlConnection(m_ConnectionString))