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