mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -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.");
|
||||
return;
|
||||
}
|
||||
char namebuff[74];
|
||||
char motdbuff[74];
|
||||
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);
|
||||
Chat_Add1("&eName: &f%s", &Server.Name);
|
||||
Chat_Add1("&eMOTD: &f%s", &Server.MOTD);
|
||||
}
|
||||
|
||||
static struct ChatCommand MotdCommand = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user