Community Forums Today's Posts     Member List     Archive    
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2011
    Location
    Russian Federation
    Posts
    210

    automatic deletion of channels with the topic

    guys please tell me at the moment I'm struggling with the channels of non-attendance are as follows: With the help of a script, I drove all the channels topic with the text CHANNEL_FOR_DELET in the pop-up window put a message saying that if the channel is not administrtaory will edit their own topic to June 7 number, the channel will be deleted. it all works, just the fact that when expires last day, and I already know the channels that are unvisited, I have to delete them manually, you have to search all the channels are left with the text in the topic CHANNEL_FOR_DELET Question: How do I delete all the channels automatically with the topic of my text CHANNEL_FOR_DELET

  2. #2
    Join Date
    Jan 2010
    Location
    Germany
    Posts
    2,042
    Code:
    local function autoDeleteChannel(scHId)
        local cL, cLE = ts3.getChannelList(scHId)
        if clE == ts3errors.ERROR_ok then
           while cL[i] do
               local topic, tErr = ts3.getChannelVariableAsString(scHId, cL[i], ts3defs.ChannelProperties.CHANNEL_TOPIC)
               if tErr == ts3errors.ERROR_ok then
                    if topic == "DELETE" then
                        ts3.requestChannelDelete(scHId, cL[i], 0)
                    end
               end
           end
        end
    end
    UNTESTED Lua Code!
    NO Guarantees whatsoever. Use at your own Risk!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [On Todo] created channels topic always set to channel name
    By Screech in forum Bug Reports
    Replies: 1
    Last Post: 26-01-2011, 08:22
  2. [No BUG] Auto Deletion + SA
    By Mikobiko in forum Bug Reports
    Replies: 6
    Last Post: 27-07-2010, 18:51
  3. Automatic Switching Channels in game?
    By iceman977th in forum [TeamSpeak 2] General Questions
    Replies: 4
    Last Post: 03-08-2007, 17:01
  4. Channel Deletion
    By Black Belt in forum [TeamSpeak 2] Server Support
    Replies: 4
    Last Post: 27-02-2006, 10:34

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •