Fix MCPI Ignoring ♪
All checks were successful
Build / Build (AMD64, Server) (push) Successful in 9m37s
Build / Build (AMD64, Client) (push) Successful in 10m3s
Build / Build (ARM64, Client) (push) Successful in 9m51s
Build / Build (ARM64, Server) (push) Successful in 9m45s
Build / Build (ARMHF, Server) (push) Successful in 6m56s
Build / Build (ARMHF, Client) (push) Successful in 9m11s
Build / Test (Server) (push) Successful in 11m45s
Build / Release (push) Has been skipped
Build / Test (Client) (push) Successful in 16m54s
All checks were successful
Build / Build (AMD64, Server) (push) Successful in 9m37s
Build / Build (AMD64, Client) (push) Successful in 10m3s
Build / Build (ARM64, Client) (push) Successful in 9m51s
Build / Build (ARM64, Server) (push) Successful in 9m45s
Build / Build (ARMHF, Server) (push) Successful in 6m56s
Build / Build (ARMHF, Client) (push) Successful in 9m11s
Build / Test (Server) (push) Successful in 11m45s
Build / Release (push) Has been skipped
Build / Test (Client) (push) Successful in 16m54s
This commit is contained in:
parent
7c9d16d662
commit
ccc7e5b190
@ -16,7 +16,7 @@ static std::string to_utf8(const std::u32string &s) {
|
|||||||
// Minecraft-Flavored CP437
|
// Minecraft-Flavored CP437
|
||||||
#define CP437_CHARACTERS 256
|
#define CP437_CHARACTERS 256
|
||||||
static const std::string cp437_characters_map[CP437_CHARACTERS] = {
|
static const std::string cp437_characters_map[CP437_CHARACTERS] = {
|
||||||
"\0", "☺", "☻", "♥", "♦", "♣", "♠", "•", "◘", "○", "\n", "♂", "♀", "\r", "♫", "☼",
|
"\0", "☺", "☻", "♥", "♦", "♣", "♠", "•", "◘", "○", "\n", "♂", "♀", "♪", "♫", "☼",
|
||||||
"►", "◄", "↕", "‼", "¶", "§", "▬", "↨", "↑", "↓", "→", "←", "∟", "↔", "▲", "▼",
|
"►", "◄", "↕", "‼", "¶", "§", "▬", "↨", "↑", "↓", "→", "←", "∟", "↔", "▲", "▼",
|
||||||
" ", "!", "\"", "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/",
|
" ", "!", "\"", "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/",
|
||||||
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?",
|
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ";", "<", "=", ">", "?",
|
||||||
|
@ -14,7 +14,7 @@ void sanitize_string(char **str, int max_length, unsigned int allow_newlines) {
|
|||||||
// Loop Through Message
|
// Loop Through Message
|
||||||
if (!allow_newlines) {
|
if (!allow_newlines) {
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
if ((*str)[i] == '\n' || (*str)[i] == '\r') {
|
if ((*str)[i] == '\n') {
|
||||||
// Replace Newline
|
// Replace Newline
|
||||||
(*str)[i] = ' ';
|
(*str)[i] = ' ';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user