29 using System.Collections.Generic;
 
   34 using OpenSim.Framework;
 
   35 using OpenSim.Region.Framework.Interfaces;
 
   36 using OpenSim.Region.Framework.Scenes;
 
   40     [Extension(Path = 
"/OpenSim/RegionModules", NodeName = 
"RegionModule", Id = 
"IPBanModule")]
 
   43         #region Implementation of ISharedRegionModule 
   45         private List<string> m_bans = 
new List<string>();
 
   53             new SceneBanner(scene, m_bans);
 
   77             if (
File.Exists(
"bans.txt"))
 
   79                 string[] bans = File.ReadAllLines(
"bans.txt");
 
   80                 foreach (
string ban 
in bans)
 
   94             get { 
return "IPBanModule"; }
 
   97         public Type ReplaceableInterface
 
  117         public void Ban(
string host)
 
void PostInitialise()
This is called exactly once after all the shared region-modules have been instanciated and IRegionMod...
 
EstateSettings EstateSettings
 
void AddRegion(Scene scene)
This is called whenever a Scene is added. For shared modules, this can happen several times...
 
void RemoveRegion(Scene scene)
This is called whenever a Scene is removed. For shared modules, this can happen several times...
 
Interactive OpenSim region server 
 
void Initialise(IConfigSource source)
This is called to initialize the region module. For shared modules, this is called exactly once...
 
void RegionLoaded(Scene scene)
This will be called once for every scene loaded. In a shared module this will be multiple times in on...
 
void Ban(string host)
Bans all users from the specified network from connecting. DNS bans are in the form "somewhere...
 
string BannedHostNameMask
Domain name mask for banning group of client hosts. 
 
void Close()
This is the inverse to Initialise. After a Close(), this instance won't be usable anymore...
 
virtual RegionInfo RegionInfo
 
string BannedHostIPMask
IP address mask for banning group of client hosts.