ahmet Posted December 27, 2019 Report Share Posted December 27, 2019 (edited) Hello, when someone sends a trading offer to the boat. Unknown Command sends message How can I exclude this Edited January 2, 2020 by ahmet Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted December 27, 2019 Report Share Posted December 27, 2019 With new Steam chat, incoming trade offers are also delivered as a message, I believe using the [tradeoffer] bbcode. You need to check if the message contains only bbcode and ignore it. Quote Link to comment Share on other sites More sharing options...
ahmet Posted December 28, 2019 Author Report Share Posted December 28, 2019 14 hours ago, Dr. McKay said: With new Steam chat, incoming trade offers are also delivered as a message, I believe using the [tradeoffer] bbcode. You need to check if the message contains only bbcode and ignore it. can you give me an example I don't know how to believe it Quote Link to comment Share on other sites More sharing options...
vrtgn Posted January 2, 2020 Report Share Posted January 2, 2020 if (message.includes("[tradeoffer")) { return } Put this before your switch case. ahmet 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.