… | |
… | |
26 | #include <loader.h> |
26 | #include <loader.h> |
27 | #include <sproto.h> |
27 | #include <sproto.h> |
28 | |
28 | |
29 | /* Handles misc. input request - things like hash table, malloc, maps, etc */ |
29 | /* Handles misc. input request - things like hash table, malloc, maps, etc */ |
30 | |
30 | |
31 | int |
|
|
32 | command_motd (object *op, char *params) |
|
|
33 | { |
|
|
34 | display_motd (op); |
|
|
35 | return 1; |
|
|
36 | } |
|
|
37 | |
|
|
38 | typedef struct |
31 | typedef struct |
39 | { |
32 | { |
40 | char namebuf[MAX_BUF]; |
33 | char namebuf[MAX_BUF]; |
41 | int login_order; |
34 | int login_order; |
42 | } chars_names; |
35 | } chars_names; |
… | |
… | |
65 | |
58 | |
66 | sprintf (buf, "Set debug level to %d.", i); |
59 | sprintf (buf, "Set debug level to %d.", i); |
67 | new_draw_info (NDI_UNIQUE, 0, op, buf); |
60 | new_draw_info (NDI_UNIQUE, 0, op, buf); |
68 | return 1; |
61 | return 1; |
69 | } |
62 | } |
70 | |
|
|
71 | |
63 | |
72 | /* |
64 | /* |
73 | * Those dumps should be just one dump with good parser |
65 | * Those dumps should be just one dump with good parser |
74 | */ |
66 | */ |
75 | |
67 | |
… | |
… | |
277 | |
269 | |
278 | /* |
270 | /* |
279 | * Actual commands. |
271 | * Actual commands. |
280 | * Those should be in small separate files (c_object.c, c_wiz.c, cmove.c,...) |
272 | * Those should be in small separate files (c_object.c, c_wiz.c, cmove.c,...) |
281 | */ |
273 | */ |
282 | |
274 | static int |
283 | int |
|
|
284 | onoff_value (const char *line) |
275 | onoff_value (const char *line) |
285 | { |
276 | { |
286 | int i; |
277 | int i; |
287 | |
278 | |
288 | if (sscanf (line, "%d", &i)) |
279 | if (sscanf (line, "%d", &i)) |