void IRC_OnQueryNotice(object sender, IrcEventArgs e) { if (e.Data.Nick != QueriedUser) return; ColorTextPair[] source; if (e.Data.Nick == null) source = new ColorTextPair[] { }; else source = new ColorTextPair[] { new ColorTextPair(ZChat.Options.QueryTextFore, "*"), new ColorTextPair(ZChat.Options.QueryTextFore, e.Data.Nick), new ColorTextPair(ZChat.Options.QueryTextFore, "*") }; Output(source, new ColorTextPair[] { new ColorTextPair(ZChat.Options.QueryTextFore, e.Data.Message) }); ShowActivity(); }
void irc_OnQueryNotice(object sender, IrcEventArgs e) { ColorTextPair[] source; if (e.Data.Nick == null) source = new ColorTextPair[] {}; else source = new ColorTextPair[] { new ColorTextPair(ZChat.Options.QueryTextFore, "-"), new ColorTextPair(ZChat.Options.QueryTextFore, e.Data.Nick), new ColorTextPair(ZChat.Options.QueryTextFore, "-") }; Output(source, new ColorTextPair[] { new ColorTextPair(ZChat.Options.QueryTextFore, e.Data.Message) }); lastQuerySender = e.Data.Nick; ShowActivity(); }