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