Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }