Ejemplo n.º 1
0
        public void WriteToStreamIrc(Helpers.SerializationWriter sw)
        {
            if (State != QuitNewState.Gone)
            {
                return;
            }

            string command = command = ":" + client.IrcFullName + " QUIT :" + Reason + "\n";

            sw.WriteUTF8(command);
        }
Ejemplo n.º 2
0
        public void WriteToStreamIrc(Helpers.SerializationWriter sw)
        {
            string command = ":" + Client.IrcFullName + " JOIN :" + ChannelName + "\n";

            string prefix = Client.IrcPrefix;

            if (prefix.Length > 0)
            {
                switch (prefix)
                {
                case "+":
                    command += ":[email protected] MODE " + ChannelName + " +v " + Client.UsernameUnderscored + "\n";
                    break;

                case "@":
                    command += ":[email protected] MODE " + ChannelName + " +o " + Client.UsernameUnderscored + "\n";
                    break;
                }
            }

            sw.WriteUTF8(command);
        }
Ejemplo n.º 3
0
 public void WriteToStream(Helpers.SerializationWriter sw)
 {
     sw.Write(Name);
     sw.Write(Topic);
     sw.Write(UserCount);
 }
Ejemplo n.º 4
0
 public void WriteToStreamIrc(Helpers.SerializationWriter sw)
 {
     sw.WriteUTF8(Command);
 }