version 1.23 | | version 1.24 |
---|
| | |
/* | | /* |
* static char *rcsid_rune_c = | | * static char *rcsid_rune_c = |
* "$Id: rune.c,v 1.23 2001/10/30 02:30:20 michtoen Exp $"; | | * "$Id: rune.c,v 1.24 2002/06/27 06:28:00 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
tmp=get_archetype("rune_mark"); /* this is a rune of marking */ | | tmp=get_archetype("rune_mark"); /* this is a rune of marking */ |
at=NULL; | | at=NULL; |
if (runename) { | | if (runename) { |
| | if (strstr(runename,"endmsg")) { |
| | new_draw_info_format(NDI_UNIQUE, 0, op, |
| | "Trying to cheat are we?", runename); |
| | LOG(llevInfo,"write_rune: player %s tried to write bogus rune\n", op->name); |
| | return 0; |
| | } |
strncpy(rune, runename, HUGE_BUF-2); | | strncpy(rune, runename, HUGE_BUF-2); |
rune[HUGE_BUF-2] = 0; | | rune[HUGE_BUF-2] = 0; |
strcat(rune, "\n"); | | strcat(rune, "\n"); |