Added the ability to name an author / authors for loaded cases.
This commit is contained in:
		
							parent
							
								
									99d2894ab3
								
							
						
					
					
						commit
						c8ae7746b7
					
				@ -2841,10 +2841,13 @@ void Courtroom::on_ooc_return_pressed()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    QSettings casefile("base/cases/" + command[1] + ".ini", QSettings::IniFormat);
 | 
					    QSettings casefile("base/cases/" + command[1] + ".ini", QSettings::IniFormat);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    QString caseauth = casefile.value("author", "").value<QString>();
 | 
				
			||||||
    QString casedoc = casefile.value("doc", "").value<QString>();
 | 
					    QString casedoc = casefile.value("doc", "").value<QString>();
 | 
				
			||||||
    QString cmdoc = casefile.value("cmdoc", "").value<QString>();
 | 
					    QString cmdoc = casefile.value("cmdoc", "").value<QString>();
 | 
				
			||||||
    QString casestatus = casefile.value("status", "").value<QString>();
 | 
					    QString casestatus = casefile.value("status", "").value<QString>();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (!caseauth.isEmpty())
 | 
				
			||||||
 | 
					      append_server_chatmessage("CLIENT", "Case made by " + caseauth + ".", "1");
 | 
				
			||||||
    if (!casedoc.isEmpty())
 | 
					    if (!casedoc.isEmpty())
 | 
				
			||||||
      ao_app->send_server_packet(new AOPacket("CT#" + ui_ooc_chat_name->text() + "#/doc " + casedoc + "#%"));
 | 
					      ao_app->send_server_packet(new AOPacket("CT#" + ui_ooc_chat_name->text() + "#/doc " + casedoc + "#%"));
 | 
				
			||||||
    if (!casestatus.isEmpty())
 | 
					    if (!casestatus.isEmpty())
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user