mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Telnet] Telnet encoding fix (#3269)
This commit is contained in:
parent
3a1e88f9ed
commit
f2f8fae58b
@ -142,7 +142,7 @@ void EQ::Net::TCPConnection::Write(const char *data, size_t count)
|
|||||||
|
|
||||||
WriteBaton *baton = new WriteBaton;
|
WriteBaton *baton = new WriteBaton;
|
||||||
baton->connection = this;
|
baton->connection = this;
|
||||||
baton->buffer = new char[count];;
|
baton->buffer = new char[count];
|
||||||
|
|
||||||
uv_write_t *write_req = new uv_write_t;
|
uv_write_t *write_req = new uv_write_t;
|
||||||
memset(write_req, 0, sizeof(uv_write_t));
|
memset(write_req, 0, sizeof(uv_write_t));
|
||||||
|
|||||||
@ -268,8 +268,8 @@ void ClientList::SendCLEList(const int16& admin, const char* to, WorldTCPConnect
|
|||||||
strcpy(newline, "\r\n");
|
strcpy(newline, "\r\n");
|
||||||
else
|
else
|
||||||
strcpy(newline, "^");
|
strcpy(newline, "^");
|
||||||
std::vector<char> out;
|
|
||||||
|
|
||||||
|
auto out = fmt::memory_buffer();
|
||||||
iterator.Reset();
|
iterator.Reset();
|
||||||
while(iterator.MoreElements()) {
|
while(iterator.MoreElements()) {
|
||||||
ClientListEntry* cle = iterator.GetData();
|
ClientListEntry* cle = iterator.GetData();
|
||||||
@ -1008,7 +1008,7 @@ void ClientList::ConsoleSendWhoAll(const char* to, int16 admin, Who_All_Struct*
|
|||||||
if (whom)
|
if (whom)
|
||||||
whomlen = strlen(whom->whom);
|
whomlen = strlen(whom->whom);
|
||||||
|
|
||||||
std::vector<char> out;
|
auto out = fmt::memory_buffer();
|
||||||
fmt::format_to(std::back_inserter(out), "Players on server:");
|
fmt::format_to(std::back_inserter(out), "Players on server:");
|
||||||
if (connection->IsConsole())
|
if (connection->IsConsole())
|
||||||
fmt::format_to(std::back_inserter(out), "\r\n");
|
fmt::format_to(std::back_inserter(out), "\r\n");
|
||||||
|
|||||||
@ -311,7 +311,7 @@ void ZSList::SendZoneStatus(const char* to, int16 admin, WorldTCPConnection* con
|
|||||||
strcpy(locked, "No");
|
strcpy(locked, "No");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<char> out;
|
auto out = fmt::memory_buffer();
|
||||||
|
|
||||||
if (connection->IsConsole()) {
|
if (connection->IsConsole()) {
|
||||||
fmt::format_to(std::back_inserter(out), "World Locked: {}\r\n", locked);
|
fmt::format_to(std::back_inserter(out), "World Locked: {}\r\n", locked);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user