Пример #1
0
        public Engine(List<Server> servers, Dictionary<string, Dictionary<string, string>> confs)
        {
            this.servers = servers;

            this.confs = confs;

            handlers = new EngineMessageHandlers
            {
                commands = new Dictionary<string, MessageHandler>(),
                regexes = new Dictionary<Regex, MessageHandler>(),
                catchAlls = new Dictionary<string, MessageHandler>()
            };
        }
Пример #2
0
        public Engine(List <Server> servers, Dictionary <string, Dictionary <string, string> > confs)
        {
            this.servers = servers;

            this.confs = confs;

            handlers = new EngineMessageHandlers
            {
                commands  = new Dictionary <string, MessageHandler>(),
                regexes   = new Dictionary <Regex, MessageHandler>(),
                catchAlls = new Dictionary <string, MessageHandler>()
            };
        }
Пример #3
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     this.features             = features;
     features.commands["help"] = Execute;
 }
Пример #4
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["horos"]  = Execute;
     features.commands["hitler"] = NotImplemented;
 }
Пример #5
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["uguu"] = Execute;
 }
Пример #6
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["niksi"] = Execute;
 }
Пример #7
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     // replace "r" with !<this part> of the command
     features.commands["r"] = Execute; // Name the
 }
Пример #8
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     // replace "r" with !<this part> of the command
     features.commands["r"] = Execute; // Name the
 }
Пример #9
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["expl"] = Execute;
     features.commands["add"] =  ExecuteAdd;
     features.commands["remove"] = ExecuteRemove;
 }
Пример #10
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["ignore"]   = Execute;
     features.commands["unignore"] = ExecuteUnignore;
 }
Пример #11
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["horos"] = Execute;
     features.commands["hitler"] = NotImplemented;
 }
Пример #12
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     features.commands["expl"]   = Execute;
     features.commands["add"]    = ExecuteAdd;
     features.commands["remove"] = ExecuteRemove;
 }
Пример #13
0
 public void RegisterFeature(EngineMessageHandlers features)
 {
     this.features = features;
     features.commands["help"] = Execute;
 }