mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
Use Chat_Add1
instead of String_Format1
and Chat_Add
This commit is contained in:
parent
1ebfbc9a6a
commit
66a77e6242
@ -272,16 +272,8 @@ static void MotdCommand_Execute(const cc_string* args, int argsCount) {
|
|||||||
Chat_AddRaw("&eThis command can only be used in multiplayer.");
|
Chat_AddRaw("&eThis command can only be used in multiplayer.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
char namebuff[74];
|
Chat_Add1("&eName: &f%s", &Server.Name);
|
||||||
char motdbuff[74];
|
Chat_Add1("&eMOTD: &f%s", &Server.MOTD);
|
||||||
cc_string name, motd;
|
|
||||||
|
|
||||||
String_InitArray(name, namebuff);
|
|
||||||
String_InitArray(motd, motdbuff);
|
|
||||||
String_Format1(&name, "&eName: &f%s", &Server.Name);
|
|
||||||
String_Format1(&motd, "&eMOTD: &f%s", &Server.MOTD);
|
|
||||||
Chat_Add(&name);
|
|
||||||
Chat_Add(&motd);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct ChatCommand MotdCommand = {
|
static struct ChatCommand MotdCommand = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user