public Privmsg(IAppControls app) : base(app) { this.app = app; string speechAll = App.Lion.Get("speech.all"); string actionAll = App.Lion.Get("action.all"); QuirkStart info = app.Connection.Info; // speech, others test(":maria!ip PRIVMSG #spreadbutter :Hello! #moto rola", speechAll, "maria", "Hello! #moto rola", "maria"); // action, others test(":maria!ip PRIVMSG #spreadbutter :\u0001ACTION #dances !butterfly\u0001", actionAll, "maria", "#dances !butterfly", "butterfly"); // speech, self test("PRIVMSG #spreadbutter PEOPLE WANNA DANCE #spreadbutter", speechAll, info.Nick, "PEOPLE WANNA DANCE #spreadbutter", "dance"); // action, self test("PRIVMSG #spreadbutter :\u0001ACTION #plucks !alfalfa!\u0001", actionAll, info.Nick, "#plucks !alfalfa!", "alfalfa"); this.channel = null; // should ignore test("NOTICE PRIVMSG :ooober", "ooober"); test("PRIVMSGCARD #s :m", "mute_monster"); test(":n!p PRIVMSGZ #s :m", "mute_samone"); }
public JoinPartQuit(IAppControls app) : base(app) { this.app = app; string joinOthers = App.Lion.Get("join.others"); string joinSelf = App.Lion.Get("join.self"); string partSelf = App.Lion.Get("part.self"); string partOthers = App.Lion.Get("part.others"); string partReason = App.Lion.Get("part.reason"); string partTotal = App.Lion.Get("part.total"); string quitSelf = App.Lion.Get("quit.self"); string quitOthers = App.Lion.Get("quit.others"); string quitReason = App.Lion.Get("quit.reason"); string quitTotal = App.Lion.Get("quit.total"); QuirkStart info = app.Connection.Info; info.Nick = "Tongue"; // join, others test(":maria!ip JOIN :#spreadbutter", joinOthers.Fill("maria", "ip", channel), "maria"); // join, self test(":Tongue!ip JOIN :#spreadbutter", joinSelf.Fill(channel), "tips"); // part, others, no reason test(":Tongues!ip PART #spreadbutter", partOthers.Fill("Tongues", "ip", channel), "roses"); // part, others, a reason test(":Tongues!ip PART #spreadbutter :Too angsty", partTotal.Fill(partOthers.Fill("Tongues", "ip", channel), partReason.Fill("Too angsty")), "angst"); // And now those that do not need no stinking channel. this.channel = null; // part, self, no reason test(":Tongue!ip PART #spreadbutter", partSelf.Fill("#spreadbutter"), "soulz"); // part, self, a reason test(":Tongue!ip PART #spreadbutter :Too verklempt", partTotal.Fill(partSelf.Fill("#spreadbutter"), partReason.Fill("Too verklempt")), "verklempt"); // quit, others, a reason test(":t!ip QUIT :Goodbye cruelle world", quitTotal.Fill(quitOthers.Fill("t", "ip"), quitReason.Fill("Goodbye cruelle world")), "poverty"); // quit, others, no reason test(":Tongues!ip QUIT", quitOthers.Fill("Tongues", "ip"), "slip"); // quit, self, a reason test(":Tongue!ip QUIT :Goodbye cruelle monkey", quitTotal.Fill(quitSelf, quitReason.Fill("Goodbye cruelle monkey")), "jane"); // quit, self, no reason test(":Tongue!ip QUIT", quitSelf, "short"); // should ignore test(":Tongue!ip MODE :+x", "estar en moda"); }
public MockApp() { QuirkStart mozNet = new QuirkStart() { Nick = "Tongue", Port = 6667, Server = "irc.mozilla.org", User = "******", }; quirk = new Quirk(mozNet); this.tabber = new Tabber(this, "(new)"); tabber.NewTab += delegate { }; tabber.Add("(server)"); this.buffer = new Buffer(this, quirk); this.userList = new UserList(); }
public App() { this.SetUpForm(); // SetUpForm.cs var mozNet = new QuirkStart() { Nick = "Tongue", Port = 6667, Server = "irc.mozilla.org", User = "******", }; quirk = new Quirk(mozNet); this.buffer = new Buffer(this, quirk); quirk.NewLine += new Quirk.NewLineDel(Buffer.AddLine); App.LoadAttributeLovers(typeof(DesiresAppControlsAttribute), this); PostOffice(); quirk.Start(); }