MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 2 | void preload(string file) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
| 4 | DESCRIPTION |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 5 | Load the object with the given file name (which was returned by |
| 6 | epilog()). It is the task of the epilog()/preload() pair to ensure |
| 7 | the validity of the given strings (e.g. filtering out comments |
| 8 | and blank lines). For preload itself a call_other(file, "???") |
| 9 | is sufficient, but it should be guarded by a catch() to avoid |
| 10 | premature blockings. Also it is wise to change the master's |
| 11 | euid from root_uid to something less privileged for the time |
| 12 | of the preload. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 13 | |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 14 | You can of course do anything else with the passed strings - |
| 15 | preloading is just the traditional task. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 16 | |
| 17 | SEE ALSO |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame] | 18 | epilog(M), master(M) |