Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

  • Administrator

This change improves the handling of shop names before sending them through the network. Here's what the modification does:

Original Code: In the original code, the shop sign was sent directly after copying it to the packet structure. If the shop sign was empty, the function would return without further processing. Also, the check for inappropriate language content was performed directly on the member variable m_stShopSign.

Modified Code: In the modified code, the shop sign is first copied to a temporary buffer (szSign). This buffer is then checked for inappropriate language content. If the sign is empty, the function returns immediately. If the sign contains inappropriate content, the shop creation is prevented.

The delay in copying szSign to m_stShopSign until after the packet is sent helps ensure that inappropriate language checks are performed on the shop sign displayed to others, not on the sign as it exists in the character's data.

In summary, these changes enhance the security and integrity of the shop sign data by checking it for inappropriate language before sending it and by ensuring the check is performed on the correct data. This helps maintain a safer and more reliable environment within the game.

 

game -> char.cpp

Find:

This is the hidden content, please

Change to:

This is the hidden content, please

Find:

This is the hidden content, please

Change to:

This is the hidden content, please

In OpenMyShop Find:

This is the hidden content, please

Change to:

This is the hidden content, please

 

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...