public WhoisLoginPlugin(IConnectionManager connMgr, JObject config) { ConnectionManager = connMgr; Config = new WhoisLoginConfig(config); WhoisEveryoneTimer = null; NicksToLogins = new Dictionary <string, string>(); ConnectionManager.ConnectedToServer += HandleConnectedToServer; ConnectionManager.NickMapping += HandleNickMapping; ConnectionManager.JoinedChannel += HandleJoinedChannel; ConnectionManager.NamesInChannel += HandleNamesInChannel; ConnectionManager.NickChange += HandleNickChange; ConnectionManager.RawMessage += HandleRawMessage; }
public virtual void ReloadConfiguration(JObject newConfig) { Config = new WhoisLoginConfig(newConfig); PostConfigReload(); }