Clear user account cache before checking flags on login. This will make AV

and other bannable flags work in this case.
avinationmerge
Melanie 2011-01-27 03:05:33 +01:00
parent dd1980c24c
commit 0e1d28a862
1 changed files with 3 additions and 0 deletions

View File

@ -3408,6 +3408,9 @@ namespace OpenSim.Region.Framework.Scenes
//On login test land permisions
if (vialogin)
{
IUserAccountCacheModule cache = RequestModuleInterface<IUserAccountCacheModule>();
if (cache != null)
cache.Remove(agent.firstname + " " + agent.lastname);
if (!TestLandRestrictions(agent.AgentID, out reason, ref agent.startpos.X, ref agent.startpos.Y))
{
m_log.DebugFormat("[CONNECTION BEGIN]: Denying access to {0} due to no land access", agent.AgentID.ToString());