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; }
public static void PokeBuffer(IAppControls app, string line, LineDel girls) { app.Buffer.PostLine += girls; app.Buffer.AddLine(line); app.Buffer.PostLine -= girls; }
public Query(IAppControls app) { this.app = app; this.introFilterDel = new LineDel(introFilter); app.InputBox.Command += new InputBox.CommandDel(filter); }