@@ -1049,16 +1049,34 @@ static void export_functions(scope _server)
10491049 " :param str command: Command to execute.\n "
10501050 " :param *args: Additional arguments that should be passed to the command.\n "
10511051 " :raise TypeError: Raised if keyword arguments have been passed.\n "
1052- " :raise ValueError: Raised if the command has not been found or if the command couldn't be tokenized." ;
1052+ " :raise ValueError: Raised if the server command was not found or if the command couldn't be tokenized." ;
1053+
10531054
10541055 def (" queue_server_command" ,
10551056 raw_function (queue_server_command, 1 )
10561057 );
1057- _server.attr (" queue_server_command" ).attr (" __doc__" ) = " Same as :func:`execute_server_command`, but does not execute the server command immediately. "
1058- " Instead it is added to the server command queue. Thus, it can be executed with a little delay." ;
1058+ _server.attr (" queue_server_command" ).attr (" __doc__" ) =
1059+ " Same as :func:`execute_server_command`, but does not execute the server command immediately. "
1060+ " Instead it is added to the server command queue. Thus, it can be executed with a little delay.\n\n "
1061+ " :raise ValueError: Raised if the server command was not found." ;
1062+
10591063
10601064 def (" queue_command_string" ,
10611065 &queue_command_string,
1062- " Adds a string to the server command queue. It's the same like typing something into the server console."
1066+ " Adds a string to the end of the server command queue. It's the same like typing something into the server console."
1067+ );
1068+
1069+
1070+ def (" insert_server_command" ,
1071+ raw_function (insert_server_command, 1 )
1072+ );
1073+ _server.attr (" insert_server_command" ).attr (" __doc__" ) =
1074+ " Same as :func:`queue_server_command`, but inserts the command at the beginning of the server command queue.\n\n "
1075+ " :raise ValueError: Raised if the server command was not found." ;
1076+
1077+
1078+ def (" insert_command_string" ,
1079+ &insert_command_string,
1080+ " Same like :func:`queue_command_string`, but inserts the command at the beginning of the server command queue."
10631081 );
10641082}
0 commit comments