Exemplo n.º 1
0
        private void joinChannelToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Request l = new Request("Join: ");
            l.ShowDialog();

            if (l.getCorrect())
            {
                // notify server and create channel
                string[] s = l.getValue().Split(' ');
                //channel.createChannel(s[0]);
                try
                {
                    socket.send("join " + s[0]);
                }
                catch (Exception m) { }

            }
        }
Exemplo n.º 2
0
 public void newNick()
 {
     Request request = new Request("Nick: ");
     //request.Parent = this;
     request.ShowDialog();
     if (request.getValue().Trim() == "")
     {
         newNick();
     }
     socket.send("nick " + request.getValue().Trim());
 }