I noticed, that the information of the 'clientMove'-event is wrong/random if a user leaves the server / the new channel is '0'.
The following code inside of a plugin...
...gave me the following log-output, when I joined and left the server a few times:
ALL log-entries resulted from movements of the same client 'm-trex', but foreign names and clientIds appeared.
The wrong entries are highlighted in red.
This error also affects the plugin aloneMode.js, as the bot sometimes switches to alonemode, even if the single user in his channel is still present, but the bot thought he left.
Regard,
mtrex
The following code inside of a plugin...
Code:
sinusbot.on('clientMove', function(ev) {
if(ev.oldChannel > 0 && ev.newChannel > 0) {
sinusbot.log('User "' + ev.clientNick + '" switched from "' + ev.oldChannel + '" to "' + ev.newChannel + '" - clientId=' + ev.clientUid);
} else if(ev.oldChannel > 0 && ev.newChannel == 0) {
sinusbot.log('User "' + ev.clientNick + '" left from "' + ev.oldChannel + '" - clientId=' + ev.clientUid);
} else if(ev.oldChannel == 0 && ev.newChannel > 0) {
sinusbot.log('User "' + ev.clientNick + '" joined channel "' + ev.newChannel + '" - clientId=' + ev.clientUid);
}
});
...gave me the following log-output, when I joined and left the server a few times:
ALL log-entries resulted from movements of the same client 'm-trex', but foreign names and clientIds appeared.
The wrong entries are highlighted in red.
This error also affects the plugin aloneMode.js, as the bot sometimes switches to alonemode, even if the single user in his channel is still present, but the bot thought he left.
Regard,
mtrex
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Ubuntu 14.04.4 LTS (OpenVZ)
- OS x64 check: OK
- Kernel: Linux 3.13.0-042stab113.11 x86_64
- Load Average: 0.09 0.14 0.10
- Uptime: 18 days, 19 hours, 54 minutes, 42 seconds
- OS Updates: 0 (well done!)
- OS Missing Packages: None (v1)
- OS APT Last Update: 02.04.2016 16:13:13 UTC +00:00:00
- Bot Start Script: not found
- DNS resolution check: google.com -> OK
- CPU:
Architecture: x86_64
CPU(s): 64
CPU MHz: 559.863
Virtualization: VT-x
- RAM: 91.69 MB/8.00 GB in use (1%)
- SWAP: 0 B/0 B in use (%)
- DISK: B/ B in use (%)
- Report date: 02.04.2016 16:20:13 UTC +00:00:00 (timezone: Etc/UTC)
BOT INFORMATION
- Status: running
- Webinterface: port locally reachable (Port: 8087)
- Binary: /opt/sinusbot/sinusbot (Hash: 09876610d75f55d2a133013f5a06937d)
- Version: 0.9.11-ee30ef7
- TS3 Plugin: installed (md5 hash match)
- Bot Plugin: 550012df1db6e7086abcf5af6afd0dda
- TS3 Client: 550012df1db6e7086abcf5af6afd0dda
- Config:
- LogLevel = 3
- TS3Path = /opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.0.18.2)
- YoutubeDLPath = not set
- Installed scripts: advertising.js; aloneMode.js; badchan.js; bookmark.js; covatar.js; dev.js; followme.js; idle.js; jail.js; keywordmessage.js; metadata.js; mm-oldchannels.js; mm-returntobase.js; norecording.js; reconnect.js; rememberChannel.js; showcase.js; sound.js; usets-adminbot.js; welcometext.js
OTHER INFORMATION
- TeamSpeak 3 Version: 3.0.18.2
- DiagScript version: v0.4.1
==========================================================
SINUSBOT RELATED
SYSTEM INFORMATION
- Operating System: Ubuntu 14.04.4 LTS (OpenVZ)
- OS x64 check: OK
- Kernel: Linux 3.13.0-042stab113.11 x86_64
- Load Average: 0.09 0.14 0.10
- Uptime: 18 days, 19 hours, 54 minutes, 42 seconds
- OS Updates: 0 (well done!)
- OS Missing Packages: None (v1)
- OS APT Last Update: 02.04.2016 16:13:13 UTC +00:00:00
- Bot Start Script: not found
- DNS resolution check: google.com -> OK
- CPU:
Architecture: x86_64
CPU(s): 64
CPU MHz: 559.863
Virtualization: VT-x
- RAM: 91.69 MB/8.00 GB in use (1%)
- SWAP: 0 B/0 B in use (%)
- DISK: B/ B in use (%)
- Report date: 02.04.2016 16:20:13 UTC +00:00:00 (timezone: Etc/UTC)
BOT INFORMATION
- Status: running
- Webinterface: port locally reachable (Port: 8087)
- Binary: /opt/sinusbot/sinusbot (Hash: 09876610d75f55d2a133013f5a06937d)
- Version: 0.9.11-ee30ef7
- TS3 Plugin: installed (md5 hash match)
- Bot Plugin: 550012df1db6e7086abcf5af6afd0dda
- TS3 Client: 550012df1db6e7086abcf5af6afd0dda
- Config:
- LogLevel = 3
- TS3Path = /opt/sinusbot/TeamSpeak3-Client-linux_amd64/ts3client_linux_amd64 (Version 3.0.18.2)
- YoutubeDLPath = not set
- Installed scripts: advertising.js; aloneMode.js; badchan.js; bookmark.js; covatar.js; dev.js; followme.js; idle.js; jail.js; keywordmessage.js; metadata.js; mm-oldchannels.js; mm-returntobase.js; norecording.js; reconnect.js; rememberChannel.js; showcase.js; sound.js; usets-adminbot.js; welcometext.js
OTHER INFORMATION
- TeamSpeak 3 Version: 3.0.18.2
- DiagScript version: v0.4.1
==========================================================