Login options.
(player): New member flags. (PF_UTF8, NF_UTF8): New PF_UTF8 replaces NF_UTF8. Users changed. (options_cmd): New. (login_coms): New command `options'. (toggle): Revert to the previous rev.
This commit is contained in:
parent
976cdfbf9e
commit
baf416652a
7 changed files with 68 additions and 43 deletions
|
@ -84,7 +84,7 @@ flash(void)
|
|||
if ((*sp >= 0x0 && *sp < 0x20 && *sp != '\t') ||
|
||||
*sp == 0x7f)
|
||||
*sp = '?';
|
||||
else if (!(us->nat_flags & NF_UTF8) && (*sp & 0x80))
|
||||
else if (!(player->flags & PF_UTF8) && (*sp & 0x80))
|
||||
*sp = '?';
|
||||
}
|
||||
sendmessage(us, to, buf, 1);
|
||||
|
@ -115,7 +115,7 @@ wall(void)
|
|||
if ((*sp >= 0x0 && *sp < 0x20 && *sp != '\t') ||
|
||||
*sp == 0x7f)
|
||||
*sp = '?';
|
||||
else if (!(us->nat_flags & NF_UTF8) && (*sp & 0x80))
|
||||
else if (!(player->flags & PF_UTF8) && (*sp & 0x80))
|
||||
*sp = '?';
|
||||
}
|
||||
sendmessage(us, 0, buf, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue