public IRCUser(string name, ServicesCore core) { p_id = - Guid.NewGuid().ToString().GetHashCode(); p_name = name; p_core = core; }
public FloodServService(LocalClient tMyClient, ServicesCore tMyCore, DataBase tFloodDB, ModuleList Modules) { this.MyClient = tMyClient; this.MyCore = tMyCore; this.FloodDB = tFloodDB; this.Modules = Modules; Help = ((Help.Help) this.Modules["Help"]); m_NPWatches = new ArrayList(); m_NSWatches = new ArrayList(); m_RegWatches = new ArrayList(); m_Recent = new ServiceList(); updateWatchList(0); updateWatchList(1); updateWatchList(2); }
public Server(string name, ServicesCore core) : base(name, core) { users = new ServiceList(); leafs = new ServiceList(); }
public Client(string name, ServicesCore core) : base(name, core) { p_host = ""; p_vHost = ""; p_username = ""; p_realname = ""; p_identNick = ""; p_modes = ""; p_channels = new ChannelsList(); }
public ChanMember(Client user, ServicesCore core) { this.p_modes = ""; this.p_user = user; this.p_core = core; }
public Channel(string name, ServicesCore core) { this.p_modes = ""; this.p_topic = new Topic(); this.p_channelMembers = new ChanMembers(); this.p_name = name; this.p_core = core; }
public void TerminateCore() { if (Core != null) { Core.Disconnect(); Core = null; if (ModuleManage != null) { foreach (BlackLight.Services.Modules.BlackLightModule tModule in ModuleManage.Modules) { tModule.ModUnload(); } while (ModuleManage.Modules.Count > 0) { ModuleManage.Modules[0] = null; ModuleManage.Modules.RemoveAt(0); } ModuleManage = null; } if (timerController != null) { timerController.Dispose(); timerController = null; } if (_timerChecker != null) { _timerChecker.Abort(); _timerChecker = null; } if (ConfigManager != null&& ConfigManager.Configuration != null) { ConfigManager.Configuration.Clear(); ConfigManager.Configuration = null; } if (ConfigManager != null) { ConfigManager = null; } Core_LogMessage("ServicesDaemon", "TerminateCore()", BlackLight.Services.Error.Errors.DEBUG, "Core Terminated", "", "", ""); } else { Core_LogMessage("ServicesDaemon", "TerminateCore()", BlackLight.Services.Error.Errors.DEBUG, "Core already terminated", "", "", ""); } }
public IRCd(string tIRCdfile, ServicesCore tBase) { CommandList = new Dictionary<string, Command>(); OutCommandList = new Dictionary<string, Command>(); SJOINPrefixList = new Dictionary<char,string>(); // new Hashtable(); try { this.IRCdfile = tIRCdfile; MyCore = tBase; } catch (Exception ex) { MyCore.SendLogMessage("IRCd", "New", BlackLight.Services.Error.Errors.ERROR, "Problem", "", ex.Message, ex.StackTrace); } }
public ServicesDaemon(BlackLight.Services.Error.Errors LogType) { this.LogType = LogType; Core = new ServicesCore(); Core.OnConnect += new BlackLight.Services.Core.IRC.OnConnectEventHandler(Core_onConnect); Core.events.onClientConnect += new BlackLight.Services.Core.ServicesCore.ServicesEvents.onClientConnectEventHandler(Core_onClientConnect); Core.events.onServer += new BlackLight.Services.Core.ServicesCore.ServicesEvents.onServerEventHandler(Core_onServer); Core.events.onQuit += new BlackLight.Services.Core.ServicesCore.ServicesEvents.onQuitEventHandler(Core_onQuit); Core.events.onNick += new BlackLight.Services.Core.ServicesCore.ServicesEvents.onNickEventHandler(Core_onNick); Core.events.onJoin += new BlackLight.Services.Core.ServicesCore.ServicesEvents.onJoinEventHandler(Core_onJoin); Core.onDisconnect += new BlackLight.Services.Core.IRC.onDisconnectEventHandler(Core_onDisconnect); Core.events.LogMessage += new BlackLight.Services.Core.ServicesCore.ServicesEvents.LogMessageEventHandler(Core_LogMessage); // //ModuleManage = new BlackLight.Services.Modules.ModuleManagement(this); ConfigManager = new BlackLight.Services.Config.ConfigHandler(); //Timers = new BlackLight.Services.Timers.TimerList(this); }
public NickServService(LocalClient tMyClient, ServicesCore tMyCore, DataBase tNickDB, ModuleList Modules) { this.MyClient = tMyClient; this.MyCore = tMyCore; this.NickDB = tNickDB; this.Modules = Modules; Help = ((Help.Help) this.Modules["Help"]); }
/// ----------------------------------------------------------------------------- /// <summary> /// Creates instance /// </summary> /// <param name="Base">Istance of the Services Core</param> /// <param name="IRCd">Instance of the Services protocol class</param> /// <remarks> /// </remarks> /// <history> /// [Caleb] 6/18/2005 Created /// </history> /// ----------------------------------------------------------------------------- public Commands(ServicesCore Base, IRCd IRCd) { MyIRCd = IRCd; MyCore = Base; }
public LocalClientsList(ServicesCore tBase) { a = new ArrayList(); MyCore = tBase; }
public LocalClient(string tName, MessageCallBack tOnMsg, ServicesCore tBase) : base(tName, tBase) { Cmds = new CommandList(); OnMsg = tOnMsg; }