mirror of
https://github.com/opensim/opensim.git
synced 2026-07-26 10:27:43 +08:00
* More IRCClientView fiddling. Now implements IClientAPI & IClientCore.
This commit is contained in:
@@ -1,39 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Net;
|
||||
using Nini.Config;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
using OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server;
|
||||
|
||||
namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView
|
||||
{
|
||||
class IRCStackModule : IRegionModule
|
||||
{
|
||||
private IRCServer m_server;
|
||||
private Scene m_scene;
|
||||
|
||||
#region Implementation of IRegionModule
|
||||
|
||||
public void Initialise(Scene scene, IConfigSource source)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
m_scene = scene;
|
||||
m_server = new IRCServer(IPAddress.Parse("0.0.0.0"),6666, scene);
|
||||
m_server.OnNewIRCClient += m_server_OnNewIRCClient;
|
||||
}
|
||||
|
||||
void m_server_OnNewIRCClient(IRCClientView user)
|
||||
{
|
||||
m_scene.AddNewClient(user);
|
||||
}
|
||||
|
||||
public void PostInitialise()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
|
||||
}
|
||||
|
||||
public void Close()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { throw new System.NotImplementedException(); }
|
||||
get { return "IRCClientStackModule"; }
|
||||
}
|
||||
|
||||
public bool IsSharedModule
|
||||
{
|
||||
get { throw new System.NotImplementedException(); }
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user