Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ServerpacketHandler: spelling fixes
  • Loading branch information
nerzhul committed Mar 18, 2015
1 parent 22730bb commit 8f2e9bf
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/network/serverpackethandler.cpp
Expand Up @@ -343,7 +343,7 @@ void Server::handleCommand_Init_Legacy(NetworkPacket* pkt)
* respond for some time, your server was overloaded or
* things like that.
*/
infostream << "Server::ProcessData(): Cancelling: peer "
infostream << "Server::ProcessData(): Canceling: peer "
<< pkt->getPeerId() << " not found" << std::endl;
return;
}
Expand Down Expand Up @@ -826,7 +826,7 @@ void Server::handleCommand_PlayerPos(NetworkPacket* pkt)

Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -842,7 +842,7 @@ void Server::handleCommand_PlayerPos(NetworkPacket* pkt)

PlayerSAO *playersao = player->getPlayerSAO();
if (playersao == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player object for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand Down Expand Up @@ -904,7 +904,7 @@ void Server::handleCommand_InventoryAction(NetworkPacket* pkt)
{
Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -913,7 +913,7 @@ void Server::handleCommand_InventoryAction(NetworkPacket* pkt)

PlayerSAO *playersao = player->getPlayerSAO();
if (playersao == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player object for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand Down Expand Up @@ -1074,7 +1074,7 @@ void Server::handleCommand_ChatMessage(NetworkPacket* pkt)

Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand Down Expand Up @@ -1155,7 +1155,7 @@ void Server::handleCommand_Damage(NetworkPacket* pkt)

Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -1164,7 +1164,7 @@ void Server::handleCommand_Damage(NetworkPacket* pkt)

PlayerSAO *playersao = player->getPlayerSAO();
if (playersao == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player object for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -1189,7 +1189,7 @@ void Server::handleCommand_Breath(NetworkPacket* pkt)

Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -1209,7 +1209,7 @@ void Server::handleCommand_Breath(NetworkPacket* pkt)

PlayerSAO *playersao = player->getPlayerSAO();
if (playersao == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player object for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand Down Expand Up @@ -1254,7 +1254,7 @@ void Server::handleCommand_Password(NetworkPacket* pkt)

Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand Down Expand Up @@ -1291,7 +1291,7 @@ void Server::handleCommand_Password(NetworkPacket* pkt)
} else {
actionstream << player->getName() << " tries to change password but "
<< "it fails" << std::endl;
SendChatMessage(pkt->getPeerId(), L"Password change failed or inavailable.");
SendChatMessage(pkt->getPeerId(), L"Password change failed or unavailable.");
}
}

Expand All @@ -1302,7 +1302,7 @@ void Server::handleCommand_PlayerItem(NetworkPacket* pkt)

Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -1311,7 +1311,7 @@ void Server::handleCommand_PlayerItem(NetworkPacket* pkt)

PlayerSAO *playersao = player->getPlayerSAO();
if (playersao == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player object for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -1329,7 +1329,7 @@ void Server::handleCommand_Respawn(NetworkPacket* pkt)
{
Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -1345,7 +1345,7 @@ void Server::handleCommand_Respawn(NetworkPacket* pkt)
<< PP(player->getPosition()/BS) << std::endl;

// ActiveObject is added to environment in AsyncRunStep after
// the previous addition has been succesfully removed
// the previous addition has been successfully removed
}

void Server::handleCommand_Interact(NetworkPacket* pkt)
Expand Down Expand Up @@ -1377,7 +1377,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)

Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -1386,7 +1386,7 @@ void Server::handleCommand_Interact(NetworkPacket* pkt)

PlayerSAO *playersao = player->getPlayerSAO();
if (playersao == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player object for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand Down Expand Up @@ -1778,7 +1778,7 @@ void Server::handleCommand_NodeMetaFields(NetworkPacket* pkt)

Player *player = m_env->getPlayer(pkt->getPeerId());
if (player == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand All @@ -1787,7 +1787,7 @@ void Server::handleCommand_NodeMetaFields(NetworkPacket* pkt)

PlayerSAO *playersao = player->getPlayerSAO();
if (playersao == NULL) {
errorstream << "Server::ProcessData(): Cancelling: "
errorstream << "Server::ProcessData(): Canceling: "
"No player object for peer_id=" << pkt->getPeerId()
<< " disconnecting peer!" << std::endl;
m_con.DisconnectPeer(pkt->getPeerId());
Expand Down

0 comments on commit 8f2e9bf

Please sign in to comment.