Skip to content

Commit

Permalink
Merge pull request #263 from DragonSlayer62/develop
Browse files Browse the repository at this point in the history
accounts
  • Loading branch information
Xoduz authored Mar 30, 2024
2 parents ca50ff0 + 1eecfa3 commit 69e051c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/CPacketReceive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void CPIFirstLogin::Receive( void )
char temp[30];
// Grab our username
memcpy( temp, &tSock->Buffer()[1], 30 );
userId = temp;
userId = oldstrutil::trim( temp );

// Grab our password
memcpy( temp, &tSock->Buffer()[31], 30 );
Expand Down Expand Up @@ -547,7 +547,7 @@ void CPISecondLogin::Receive( void )

// Grab our username
memcpy( temp, &tSock->Buffer()[5], 30 );
sid = temp;
sid = oldstrutil::trim( temp );

// Grab our password
memcpy( temp, &tSock->Buffer()[35], 30 );
Expand Down
3 changes: 3 additions & 0 deletions source/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
22/03/2024 - Dragon Slayer/Xuri
Leading/trailing whitespace is now trimmed from account names during login.

21/03/2024 - Dragon Slayer/Xuri
Fixed an issue with onHunger and onThirst event crashing if the npc was not loaded yet.

Expand Down

0 comments on commit 69e051c

Please sign in to comment.