예제 #1
0
        void OnChannel(string[] args)
        {
            var c = new ExistingChannel();

            c.name = args[0];
            int.TryParse(args[1], out c.userCount);
            if (args.Length >= 3)
            {
                c.topic = Utils.Glue(args, 2);
            }
            ExistingChannels.Add(c.name, c);
        }
예제 #2
0
 void OnChannel(string[] args)
 {
     var c = new ExistingChannel();
     c.name = args[0];
     int.TryParse(args[1], out c.userCount);
     if (args.Length >= 3) c.topic = Utils.Glue(args, 2);
     ExistingChannels.Add(c.name, c);
 }