Example #1
0
 public BanManager(string save_path, FilterManager manager)
 {
     Info          = LoadBanInfo(save_path);
     FilterManager = manager;
     ClientFilter  = new BanClientFilter(this);
     ServerFliter  = new BanServerFilter(this);
 }
Example #2
0
 public BanManager(FilterManager manager, MessageDispatcher dispatcher)
 {
     info          = new BanInfo();
     filterManager = manager;
     clientFliter  = new BanClientFilter(this);
     serverFliter  = new BanServerFilter(this);
     messageSender = dispatcher;
 }
Example #3
0
 /// <summary>
 /// 钦定服务器(osu!irc)用的消息过滤器
 /// </summary>
 /// <param name="fliter">新的消息过滤器</param>
 public void SetServerFliter(BanServerFilter fliter)
 {
     serverFliter = fliter;
     fliter.SetBanManager(this);
 }