예제 #1
0
파일: Who.cs 프로젝트: hlian/windows
 public Who(IAppControls app)
 {
     // Hook me up to the command /w in addition to filtering
     // WHO commands; thus, Who serves as a dual purpose class.
     app.InputBox.Command += (cmd, arg) => {
         if ("w" != cmd)
         {
             return;
         }
         if (!app.CurrentChannel.IsChannel())
         {
             return;
         }
         app.Buffer.Line += filterDel;
         app.Connection.Message("WHO " + app.CurrentChannel);
     };
     app.Buffer.SelfLine += new LineDel(whoMessageFilter);
     filterDel            = new LineDel(filter);
     this.app             = app;
 }
예제 #2
0
 public static void PokeBuffer(IAppControls app, string line, LineDel girls)
 {
     app.Buffer.PostLine += girls;
     app.Buffer.AddLine(line);
     app.Buffer.PostLine -= girls;
 }
예제 #3
0
 public Query(IAppControls app)
 {
     this.app              = app;
     this.introFilterDel   = new LineDel(introFilter);
     app.InputBox.Command += new InputBox.CommandDel(filter);
 }