public BanManager(string save_path, FilterManager manager)
 {
     Info          = LoadBanInfo(save_path);
     FilterManager = manager;
     ClientFilter  = new BanClientFilter(this);
     ServerFliter  = new BanServerFilter(this);
 }
Exemple #2
0
 public BanManager(FilterManager manager, MessageDispatcher dispatcher)
 {
     info          = new BanInfo();
     filterManager = manager;
     clientFliter  = new BanClientFilter(this);
     serverFliter  = new BanServerFilter(this);
     messageSender = dispatcher;
 }
Exemple #3
0
 /// <summary>
 /// 钦定客户端(直播间)用的消息过滤器
 /// </summary>
 /// <param name="fliter">新的消息过滤器</param>
 public void SetClientFliter(BanClientFilter fliter)
 {
     clientFliter = fliter;
     fliter.SetBanManager(this);
 }