unsigned int error;
if (newChannelID == 0) // When we disconnect, we get moved to chan 0 before the connection event
{ // However, we aren't able to get our own id etc. anymore via the API for comparison
int con_status; // Therefor, unless we cache our ids for no other benefit, this is a workaround by filtering those out
if ((error = ts3Functions.getConnectionStatus(serverConnectionH andlerID,&con_status)) != ERROR_ok)
{
TSLogging::Error("(ts3plugin_onClientMoveEvent)",s erverConnectionHandlerID,error);
return;
}
if (con_status == STATUS_DISCONNECTED)
return;
}
// Get My Id on this handler
anyID myID;
if((error = ts3Functions.getClientID(serverConnectionHandlerID ,&myID)) != ERROR_ok)
{
TSLogging::Error("(ts3plugin_onClientMoveEvent)",s erverConnectionHandlerID,error);
return;
}