Migrate strings for all commands

FossilOrigin-Name: 11889bf242c1346514823c710dcf369bebc7339b24399f2c6369b146c644996c
This commit is contained in:
Jonathan Schleifer 2025-03-07 22:30:15 +00:00
parent 63a6c72954
commit 039efe612d
7 changed files with 89 additions and 93 deletions

View file

@ -166,16 +166,18 @@ trydisconnect()
string ctext;
void
toserver(const char *text)
toserver(OFString *text)
{
conoutf(@"%s:\f %s", player1->name, text);
strn0cpy(ctext, text, 80);
@autoreleasepool {
conoutf(@"%s:\f %@", player1->name, text);
strn0cpy(ctext, text.UTF8String, 80);
}
}
void
echo(char *text)
echo(OFString *text)
{
conoutf(@"%s", text);
conoutf(@"%@", text);
}
COMMAND(echo, ARG_VARI)