Browse Source

Fixed a small bug.

pull/3/head
JustinAJ 9 years ago
parent
commit
7b3fd02b68
  1. BIN
      Release/Plugins/RenX.Core.lib
  2. 4
      RenX.Core/RenX_Server.cpp

BIN
Release/Plugins/RenX.Core.lib

Binary file not shown.

4
RenX.Core/RenX_Server.cpp

@ -204,12 +204,12 @@ int RenX::Server::sendMessage(const Jupiter::ReadableString &message)
return r; return r;
} }
else else
return RenX::Server::sock.send("chostsay "_jrs + message + '\n'); return RenX::Server::sock.send("chostsay "_jrs + message + "\n"_jrs);
} }
int RenX::Server::sendMessage(const RenX::PlayerInfo *player, const Jupiter::ReadableString &message) int RenX::Server::sendMessage(const RenX::PlayerInfo *player, const Jupiter::ReadableString &message)
{ {
auto cmd = "chostprivatesay pid"_jrs + Jupiter::StringS::Format("%d ", player->id) + message + '\n'; auto cmd = "chostprivatesay pid"_jrs + Jupiter::StringS::Format("%d ", player->id) + message + "\n"_jrs;
RenX::sanitizeString(cmd); RenX::sanitizeString(cmd);
return RenX::Server::sock.send(cmd); return RenX::Server::sock.send(cmd);
} }

Loading…
Cancel
Save