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;
|
||||
baton->connection = this;
|
||||
baton->buffer = new char[count];;
|
||||
baton->buffer = new char[count];
|
||||
|
||||
uv_write_t *write_req = new 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");
|
||||
else
|
||||
strcpy(newline, "^");
|
||||
std::vector<char> out;
|
||||
|
||||
auto out = fmt::memory_buffer();
|
||||
iterator.Reset();
|
||||
while(iterator.MoreElements()) {
|
||||
ClientListEntry* cle = iterator.GetData();
|
||||
@ -1008,7 +1008,7 @@ void ClientList::ConsoleSendWhoAll(const char* to, int16 admin, Who_All_Struct*
|
||||
if (whom)
|
||||
whomlen = strlen(whom->whom);
|
||||
|
||||
std::vector<char> out;
|
||||
auto out = fmt::memory_buffer();
|
||||
fmt::format_to(std::back_inserter(out), "Players on server:");
|
||||
if (connection->IsConsole())
|
||||
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");
|
||||
}
|
||||
|
||||
std::vector<char> out;
|
||||
auto out = fmt::memory_buffer();
|
||||
|
||||
if (connection->IsConsole()) {
|
||||
fmt::format_to(std::back_inserter(out), "World Locked: {}\r\n", locked);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user