Private() публичный Метод

public Private ( string target, string text ) : void
target string
text string
Результат void
Пример #1
0
        void FunBotsSetup(Client client)
        {
            var timer = new Timer(60 * 60 * 1000 / 2);

            timer.Elapsed += new ElapsedEventHandler(delegate(object sender, ElapsedEventArgs e)
            {
                client.Private("lolikins", "!stuff");
            });

            client.Quitting += new EventHandler(delegate(object sender, EventArgs e)
            {
                if (timer.Enabled)
                    timer.Stop();
            });

            timer.Start();
        }
Пример #2
0
 void pasteMessage(Client client, string nick, string id, string info)
 {
     if (!string.IsNullOrEmpty(info))
         info = " - " + info;
     client.Private(Channel, string.Format("{0} pasted {1}{2}", new string[] { nick, id, info }));
 }