'Call mod' button can now send argumentless modcalls again.
This stopped the client from being able to call a mod in vanilla servers before.
This commit is contained in:
		
							parent
							
								
									22e0cb8e1a
								
							
						
					
					
						commit
						e45e138fb5
					
				@ -3017,7 +3017,10 @@ void Courtroom::on_call_mod_clicked()
 | 
				
			|||||||
  if (ok)
 | 
					  if (ok)
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    text = text.left(100);
 | 
					    text = text.left(100);
 | 
				
			||||||
    ao_app->send_server_packet(new AOPacket("ZZ#" + text + "#%"));
 | 
					    if (!text.isEmpty())
 | 
				
			||||||
 | 
					        ao_app->send_server_packet(new AOPacket("ZZ#" + text + "#%"));
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        ao_app->send_server_packet(new AOPacket("ZZ#%"));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ui_ic_chat_message->setFocus();
 | 
					  ui_ic_chat_message->setFocus();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user