Jump to content
  • 0

<ITEML> bug that me crash


Question

Posted (edited)

If player talk

<ITEML>  bla bla bla ...  </ITEML>

bla bla bla was not exist item

Then all saw his talk player will crash.

He was directly type the words,  not use  SHIFT + left-click.

 

How can I disable <ITEML> ?

I used 20160203 client

 

Thank you

Edited by bluesky
  • Love 1

2 answers to this question

Recommended Posts

  • 1
Posted

Hello! You can block it on the server side.

Open ../src/map/clif.c and in the function clif_process_message after:

	if (sd->sc.cant.chat)
		return false; //no "chatting" while muted.

add:

	if (strstr(out_message, "<ITEM>") != NULL && strchr(out_message, '%') != NULL)
	{
		return false;
	}

Recompile the server. ;-)

  • Upvote 1
  • Love 1
  • 0
Posted
33 minutes ago, Functor said:

Hello! You can block it on the server side.

Open ../src/map/clif.c and in the function clif_process_message after:


	if (sd->sc.cant.chat)
		return false; //no "chatting" while muted.

add:


	if (strstr(out_message, "<ITEM>") != NULL && strchr(out_message, '%') != NULL)
	{
		return false;
	}

Recompile the server. ;-)

 

Thanky you

I will try it.

And I very like your gepard shield:D

It's great.

  • Love 1

Join the conversation

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

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...