ahmet Posted December 27, 2019 Report 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
Dr. McKay Posted December 27, 2019 Report 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
ahmet Posted December 28, 2019 Author Report 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
vrtgn Posted January 2, 2020 Report Posted January 2, 2020 if (message.includes("[tradeoffer")) { return } Put this before your switch case. ahmet 1 Quote
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.