Exemple #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();
        }
Exemple #2
0
 public virtual void ReloadConfiguration(JObject newConfig)
 {
     Config = new PuntConfig(newConfig);
     PostConfigReload();
 }