Results 1 to 2 of 2
-
01-06-2012, 20:43 #1
-= TeamSpeak Addict =-
- 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
-
01-06-2012, 21:39 #2
-= TeamSpeak Fanatic =-
- Join Date
- Jan 2010
- Location
- Germany
- Posts
- 2,042
UNTESTED Lua Code!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
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
-
[On Todo] created channels topic always set to channel name
By Screech in forum Bug ReportsReplies: 1Last Post: 26-01-2011, 08:22 -
[No BUG] Auto Deletion + SA
By Mikobiko in forum Bug ReportsReplies: 6Last Post: 27-07-2010, 18:51 -
Automatic Switching Channels in game?
By iceman977th in forum [TeamSpeak 2] General QuestionsReplies: 4Last Post: 03-08-2007, 17:01 -
Channel Deletion
By Black Belt in forum [TeamSpeak 2] Server SupportReplies: 4Last Post: 27-02-2006, 10:34


Reply With Quote