version 1.15 | | version 1.16 |
---|
| | |
/* | | /* |
* static char *rcsid_c_chat_c = | | * static char *rcsid_c_chat_c = |
* "$Id: c_chat.c,v 1.15 2003/07/28 05:19:35 ketche Exp $"; | | * "$Id: c_chat.c,v 1.16 2003/11/07 19:01:30 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
snprintf(buf,MAX_BUF-1, "%s tells you: %s",op->name, msg); | | snprintf(buf,MAX_BUF-1, "%s tells you: %s",op->name, msg); |
| | |
for(pl=first_player;pl!=NULL;pl=pl->next) | | pl = find_player_partial_name( name );
|
if(strncasecmp(pl->ob->name,name,MAX_NAME)==0) { | | |
| | |
| | if ( pl )
|
| | {
|
new_draw_info(NDI_UNIQUE | NDI_ORANGE, 0, pl->ob, buf); | | new_draw_info(NDI_UNIQUE | NDI_ORANGE, 0, pl->ob, buf); |
new_draw_info_format(NDI_UNIQUE | NDI_ORANGE, 0, op, | | new_draw_info_format(NDI_UNIQUE | NDI_ORANGE, 0, op, |
"You tell %s: %s", name, msg); | | "You tell %s: %s", pl->ob->name, msg); |
| | |
/* Update last_tell value [mids 01/14/2002] */ | | /* Update last_tell value [mids 01/14/2002] */ |
strcpy(pl->last_tell, op->name); | | strcpy(pl->last_tell, op->name); |
return 1; | | return 1; |
} | | } |
new_draw_info(NDI_UNIQUE, 0,op,"No such player."); | |
|
| | new_draw_info(NDI_UNIQUE, 0,op,"No such player or ambiguous name."); |
return 1; | | return 1; |
} | | } |
| | |