version 1.102 | | version 1.103 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.102 2002/11/13 05:24:54 garbled Exp $"; | | * "$Id: player.c,v 1.103 2002/11/13 05:49:04 garbled Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
| | |
void display_motd(object *op) { | | void display_motd(object *op) { |
#ifdef MOTD | | |
char buf[MAX_BUF]; | | char buf[MAX_BUF]; |
FILE *fp; | | FILE *fp; |
int comp; | | int comp; |
| | |
sprintf(buf,"%s/%s",settings.confdir,MOTD); | | sprintf(buf, "%s/%s", settings.confdir, settings.motd); |
if((fp=open_and_uncompress(buf,0,&comp))==NULL) { | | if((fp=open_and_uncompress(buf,0,&comp))==NULL) { |
return; | | return; |
} | | } |
| | |
} | | } |
close_and_delete(fp, comp); | | close_and_delete(fp, comp); |
new_draw_info(NDI_UNIQUE, 0,op," "); | | new_draw_info(NDI_UNIQUE, 0,op," "); |
#endif | | |
} | | } |
| | |
int playername_ok(char *cp) { | | int playername_ok(char *cp) { |
| | |
| | |
CLEAR_FLAG(p->ob, FLAG_FRIENDLY); | | CLEAR_FLAG(p->ob, FLAG_FRIENDLY); |
add_friendly_object(p->ob); | | add_friendly_object(p->ob); |
#ifdef MOTD | | |
display_motd(p->ob); | | display_motd(p->ob); |
#endif | | |
get_name(p->ob); | | get_name(p->ob); |
return 0; | | return 0; |
} | | } |