diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs index c182445..1c23c66 100644 --- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs +++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs | |||
@@ -1,39 +1,48 @@ | |||
1 | using System; | 1 | using System.Net; |
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using Nini.Config; | 2 | using Nini.Config; |
5 | using OpenSim.Region.Framework.Interfaces; | 3 | using OpenSim.Region.Framework.Interfaces; |
6 | using OpenSim.Region.Framework.Scenes; | 4 | using OpenSim.Region.Framework.Scenes; |
5 | using OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server; | ||
7 | 6 | ||
8 | namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView | 7 | namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView |
9 | { | 8 | { |
10 | class IRCStackModule : IRegionModule | 9 | class IRCStackModule : IRegionModule |
11 | { | 10 | { |
11 | private IRCServer m_server; | ||
12 | private Scene m_scene; | ||
13 | |||
12 | #region Implementation of IRegionModule | 14 | #region Implementation of IRegionModule |
13 | 15 | ||
14 | public void Initialise(Scene scene, IConfigSource source) | 16 | public void Initialise(Scene scene, IConfigSource source) |
15 | { | 17 | { |
16 | throw new System.NotImplementedException(); | 18 | m_scene = scene; |
19 | m_server = new IRCServer(IPAddress.Parse("0.0.0.0"),6666, scene); | ||
20 | m_server.OnNewIRCClient += m_server_OnNewIRCClient; | ||
21 | } | ||
22 | |||
23 | void m_server_OnNewIRCClient(IRCClientView user) | ||
24 | { | ||
25 | m_scene.AddNewClient(user); | ||
17 | } | 26 | } |
18 | 27 | ||
19 | public void PostInitialise() | 28 | public void PostInitialise() |
20 | { | 29 | { |
21 | throw new System.NotImplementedException(); | 30 | |
22 | } | 31 | } |
23 | 32 | ||
24 | public void Close() | 33 | public void Close() |
25 | { | 34 | { |
26 | throw new System.NotImplementedException(); | 35 | |
27 | } | 36 | } |
28 | 37 | ||
29 | public string Name | 38 | public string Name |
30 | { | 39 | { |
31 | get { throw new System.NotImplementedException(); } | 40 | get { return "IRCClientStackModule"; } |
32 | } | 41 | } |
33 | 42 | ||
34 | public bool IsSharedModule | 43 | public bool IsSharedModule |
35 | { | 44 | { |
36 | get { throw new System.NotImplementedException(); } | 45 | get { return false; } |
37 | } | 46 | } |
38 | 47 | ||
39 | #endregion | 48 | #endregion |