more 128 bit fixes --Rumble

This commit is contained in:
Rumble 2007-05-08 19:52:43 +00:00
parent ff62d18b37
commit f89d806fc2
9 changed files with 58 additions and 28 deletions

View file

@ -201,8 +201,10 @@ void string_add(struct descriptor_data *d, char *str)
d->str = NULL;
d->mail_to = 0;
d->max_str = 0;
if (d->character && !IS_NPC(d->character))
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_MAILING | PLR_WRITING);
if (d->character && !IS_NPC(d->character)) {
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_MAILING);
REMOVE_BIT_AR(PLR_FLAGS(d->character), PLR_WRITING);
}
} else if (action != STRINGADD_ACTION && strlen(*d->str) + 3 <= d->max_str) /* 3 = \r\n\0 */
strcat(*d->str, "\r\n");
}