Ejemplo n.º 1
0
        public FunCommandLimiterPlugin(IConnectionManager connMgr, JObject config)
        {
            Connection = connMgr;
            Config     = new FCLConfig(config);
            ChannelToUserToTimestamps = new Dictionary <string, Dictionary <string, List <DateTimeOffset> > >();

            Connection.CommandManager.RegisterGlobalCommandCallback(LimiterCallback);
        }
Ejemplo n.º 2
0
 public virtual void ReloadConfiguration(JObject newConfig)
 {
     Config = new FCLConfig(newConfig);
     PostConfigReload();
 }