version 1.22 | | version 1.23 |
---|
| | |
/* | | /* |
* static char *rcsid_c_misc_c = | | * static char *rcsid_c_misc_c = |
* "$Id: c_misc.c,v 1.22 2002/11/08 08:54:07 garbled Exp $"; | | * "$Id: c_misc.c,v 1.23 2002/11/12 23:09:11 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
| | |
#ifdef SET_TITLE | | |
int command_title (object *op, char *params) | | int command_title (object *op, char *params) |
{ | | { |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
| | |
| | if (settings.set_title == FALSE) { |
| | new_draw_info(NDI_UNIQUE, 0, op, "You cannot change your title."); |
| | return 1; |
| | } |
| | |
/* dragon players cannot change titles */ | | /* dragon players cannot change titles */ |
if (is_dragon_pl(op)) { | | if (is_dragon_pl(op)) { |
new_draw_info(NDI_UNIQUE, 0, op, "Dragons cannot change titles."); | | new_draw_info(NDI_UNIQUE, 0, op, "Dragons cannot change titles."); |
| | |
strcpy(op->contr->own_title, params); | | strcpy(op->contr->own_title, params); |
return 1; | | return 1; |
} | | } |
#endif /* SET_TITLE */ | | |
| | |
int command_save (object *op, char *params) | | int command_save (object *op, char *params) |
{ | | { |