Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Hasi105

#1
Allgemeine Diskussionen / Anfrage auf Massmove addon
January 15, 2011, 06:40:00 AM
Wollte fragen ob du noch die funktion "channel clients" to "channel" einführen könntest .....

Sinn der sache ist wenn sich member im falschen channel befinden kann man als admin alle mit einmal erschieben (von einem anderen channel aus)

z.b.: (main.cpp - "Massmove From Channel To Channel")

else if(!strcmp(s, "fctc"))
{
cmd = CMD_MFCTC;
}


case CMD_MFCTC:
if(param1)
{
uint64 channelID = (uint64)atoi(param1);
uint64 channelID2 = (uint64)atoi(param2);

/* Get own clientID */
if(ts3Functions.getClientID(serverConnectionHandlerID, &myID) != ERROR_ok)
{
ts3Functions.logMessage("Error querying client ID", LogLevel_ERROR, "TS3MassMover Plugin", serverConnectionHandlerID);
break;
}

uint64 currentChannelID = channelID2;

anyID* channelClientList;
if(ts3Functions.getChannelClientList(serverConnectionHandlerID, currentChannelID, &channelClientList) != ERROR_ok)
{
ts3Functions.logMessage("Error querying channel client list", LogLevel_ERROR, "TS3MassMover Plugin", serverConnectionHandlerID);
break;
}

                int clientType;
for(i=0; channelClientList[i]; i++)
{
                    if(ts3Functions.getClientVariableAsInt(serverConnectionHandlerID, channelClientList[i], CLIENT_TYPE, &clientType) != ERROR_ok)
                    {
                        continue;
                    }
                    if (clientType == 1)
                    {
                        continue;
                    }

                    /* Move clients to specified channel */
                    if(ts3Functions.requestClientMove(serverConnectionHandlerID, channelClientList[i], channelID, password, NULL) != ERROR_ok)
                    {
                        ts3Functions.logMessage("Error requesting client move", LogLevel_ERROR, "TS3MassMover Plugin", serverConnectionHandlerID);
                    }
}

ts3Functions.freeMemory(channelClientList);
}
else
{
ts3Functions.printMessageToCurrentTab("Missing channel ID parameter.");
}
break;


MFG Hasi105