Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcCommandProcessor"/> class.
 /// </summary>
 /// <param name="sst">The main tool class.</param>
 /// <param name="irc">The IRC interface.</param>
 public IrcCommandProcessor(SynServerTool sst, IrcManager irc)
 {
     _sst                = sst;
     _irc                = irc;
     _ircCmds            = new IrcCommandList(_sst, _irc);
     _ircCommandUserTime = new Dictionary <string, DateTime>();
 }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="IrcQlCmd"/> class.
        /// </summary>
        /// <param name="sst">The main tool class.</param>
        /// <param name="irc">The IRC interface.</param>
        public IrcQlCmd(SynServerTool sst, IrcManager irc)
        {
            _irc = irc;
            var cmds = new CommandList(sst);

            _cmdList = cmds.Commands;
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandList"/> class.
 /// </summary>
 /// <param name="sst">The main tool class.</param>
 /// <param name="irc">The IRC interface.</param>
 public IrcCommandList(SynServerTool sst, IrcManager irc)
 {
     _sst     = sst;
     _irc     = irc;
     Commands = new Dictionary <string, IIrcCommand>(StringComparer.InvariantCultureIgnoreCase);
     InitializeCommands();
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcModsCmd"/> class.
 /// </summary>
 /// <param name="sst">The main tool class.</param>
 /// <param name="irc">The IRC interface.</param>
 public IrcModsCmd(SynServerTool sst, IrcManager irc)
 {
     _sst = sst;
     _irc = irc;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcHelpCmd"/> class.
 /// </summary>
 /// <param name="irc">The IRC interface.</param>
 public IrcVersionCmd(IrcManager irc)
 {
     _irc = irc;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcHelpCmd"/> class.
 /// </summary>
 /// <param name="irc">The IRC interface.</param>
 /// <param name="cmdList">The command list.</param>
 public IrcHelpCmd(IrcManager irc, Dictionary <string, IIrcCommand> cmdList)
 {
     IsAsync  = false;
     _irc     = irc;
     _cmdList = cmdList;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcUsersCmd"/> class.
 /// </summary>
 /// <param name="sst">The main tool class.</param>
 /// <param name="irc">The IRC interface.</param>
 public IrcUsersCmd(SynServerTool sst, IrcManager irc)
 {
     _sst     = sst;
     _irc     = irc;
     _usersDb = new DbUsers();
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcSayTeamCmd"/> class.
 /// </summary>
 /// <param name="sst">The main tool class.</param>
 /// <param name="irc">The IRC interface.</param>
 public IrcSayTeamCmd(SynServerTool sst, IrcManager irc)
 {
     _sst = sst;
     _irc = irc;
 }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcOpMeCmd"/> class.
 /// </summary>
 /// <param name="irc">The IRC interface.</param>
 public IrcOpMeCmd(IrcManager irc)
 {
     _irc = irc;
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IrcMonitorCmd"/> class.
 /// </summary>
 /// <param name="sst">The main tool class.</param>
 /// <param name="irc">The IRC interface.</param>
 public IrcMonitorCmd(SynServerTool sst, IrcManager irc)
 {
     RequiresMonitoring = false;
     _sst = sst;
     _irc = irc;
 }