• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Solved getIP() method not working

Status
Not open for further replies.

xDefcon

Well-Known Member
Contributor
Operating System: CentOS 64bit
SinusBot Version: 0.9.15-b20cc30
TS3 Version: 3.0.19.3

Problem Description
The getIP() method (as described in the new scripting API docs) should return the IP address of a specified Client object, also if the bot has proper permissions to see the client address, this method is returning an empty string.
I have tested other methods (like isAway, isMuted) on the same object, and all works except getIP.

*i re-posted the discussion in this section, as it is the correct one*
 

xDefcon

Well-Known Member
Contributor
I tested this method on a new scripting engine, it works great! ;)
Heyo, i tested this in version 0.9.15-b20cc30. It's a strange thing, i can get randomly the IPs of some clients, some not (with same permissions).

Can you give me a sample code? I can not realize this...
EDIT: What TS3 client version did you use?
 

kapabac

Active Member
Contributor
Insider
I use only the client of version 3.0.18.2.
Code for example:
Code:
var engine = require('engine');
var backend = require('backend');
var clients = backend.getClients();
clients.forEach(function(client) {
    engine.log(client.getIP());
});
 

xDefcon

Well-Known Member
Contributor
As i said this is what i get, only one IP (in this case, mine).
Code:
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49   79.47.CENSORED
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
2016/12/15 17:50:51 0caecf34 3886902b PLUGIN TEST:49
 

mxschmitt

Moderator
Staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
You don't need to push anything :). The bug is already fixed in an internal version which will be released soon.
 
Status
Not open for further replies.
Top