Ejemplo n.º 1
0
        public PuntPlugin(IConnectionManager connMgr, JObject config)
        {
            ConnectionManager = connMgr;
            Config            = new PuntConfig(config);
            Randomizer        = new Random();
            RegexCache        = new RegexCache();

            ConnectionManager.ChannelAction  += HandleAnyChannelMessage;
            ConnectionManager.ChannelMessage += HandleAnyChannelMessage;
            ConnectionManager.ChannelNotice  += HandleAnyChannelMessage;

            RebuildRegexCache();
        }
Ejemplo n.º 2
0
 public virtual void ReloadConfiguration(JObject newConfig)
 {
     Config = new PuntConfig(newConfig);
     PostConfigReload();
 }