• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

[Bug Report] Client type function is giving wrong result

Relentless

Donor
is awesome!
is uber awesome!
Contributor
SinusBot version: 1.0.0-alpha.5-9767656
TS-Client: 3.2.3
TS-Server: 3.6.1

https://sinusbot.github.io/scripting-docs/#clienttype
Documentation says that 0 = Query and 1 = Normal.
However, if checking a normal user, it gives back 0. I wasn't able to check if it returns a 1 when a query is checked
since the sinusbot is not subscribing to the queries and therefor not seeing them. I could mange to do that if the
query writes a message to the sinusbot which triggers an event but I have no query which could handle that.
So either there is a mistake in the documentation and the numbers have to be swapped or the function is broken.
That depends on the return value of the function when an actual query is checked. Would need somebody to test.

Greetz,
Relentless
 

Similar threads

Top