def processCommand(self, schid, command): tokens = command.split(' ') if tokens[0] == "pcmd": ts3.sendPluginCommand(schid, tokens[1], ts3defines.PluginTargetMode.PluginCommandTarget_SERVER, []);return True elif tokens[0] == "meta": if tokens[1] == "get": schid = ts3.getCurrentServerConnectionHandlerID() error, ownid = ts3.getClientID(schid) if error == ts3defines.ERROR_ok: # requestClientVariables(schid, ownid) error, meta = ts3.getClientVariableAsString(schid, ownid, ts3defines.ClientProperties.CLIENT_META_DATA) if error == ts3defines.ERROR_ok: ts3.printMessageToCurrentTab(meta);return True else: ts3.printMessageToCurrentTab("Error: Can't get own meta data.");return True else: ts3.printMessageToCurrentTab("Error: Can't get own clientID.");return True elif tokens[1] == "set": schid = ts3.getCurrentServerConnectionHandlerID() error = ts3.setClientSelfVariableAsString(schid, ts3defines.ClientProperties.CLIENT_META_DATA, tokens[2]) if not error == ts3defines.ERROR_ok: ts3.printMessageToCurrentTab("Error: Unable to set own meta data.");return True else: return True else: ts3.printMessageToCurrentTab("ERROR: Command \""+tokens[0]+"\" not found!");return True return False
def onClientPokeEvent(self, serverConnectionHandlerID, fromClientID, pokerName, pokerUID, message, ffIgnored): #is it me? (err, schids) = ts3.getServerConnectionHandlerList() if err == ts3defines.ERROR_ok: for schid in schids: (err, myid) = ts3.getClientID(schid) if err == ts3defines.ERROR_ok: if fromClientID == myid: return 0 else: ts3.printMessageToCurrentTab("error getting own client id") else: ts3.printMessageToCurrentTab("error getting schids") (err, name) = ts3.getClientVariableAsString( serverConnectionHandlerID, fromClientID, ts3defines.ClientProperties.CLIENT_NICKNAME) if err != ts3defines.ERROR_ok: err = ts3.requestClientPoke(serverConnectionHandlerID, fromClientID, "Ne!") else: err = ts3.requestClientPoke(serverConnectionHandlerID, fromClientID, "%s? Ne!" % name) self.lastpoker = (serverConnectionHandlerID, fromClientID) if err != ts3defines.ERROR_ok: ts3.printMessageToCurrentTab("poke error: %d" % err) return 0 else: return 1
def onTextMessageEvent(self, schid, targetMode, toID, fromID, fromName, fromUID, message, ffIgnored): (err, myid) = ts3.getClientID(schid) if err != ERROR_ok or fromID == myid: return False #only private msgs if targetMode != TextMessageTargetMode.TextMessageTarget_CLIENT: return False #only, if I'm away (err, away) = ts3.getClientSelfVariableAsInt(schid, ClientPropertiesRare.CLIENT_AWAY) if err != ERROR_ok or not away: return False #only to friends? is from friend? if self.cfg['general']['onlyfriends'] == "True" and not isFriend(fromUID): return False #only once per conversation? did we already sent him? if self.cfg['general']['onlyonce'] == "True" and (schid, fromUID) in self.handled: return False if self.cfg['general']['sendaway'] == "True": (err, msg) = ts3.getClientSelfVariableAsString(schid, ClientPropertiesRare.CLIENT_AWAY_MESSAGE) else: msg = self.cfg['general']['custommsg'] if msg == "": return False err = ts3.requestSendPrivateTextMsg(schid, msg, fromID) if err == ERROR_ok: self.handled.append((schid, fromUID))
def onNewChannelCreatedEvent(self, serverConnectionHandlerID, channelID, channelParentID, invokerID, invokerName, invokerUniqueIdentifier): if self.toggle and self.autoCheckOnChannel: (error, _clid) = ts3.getClientID(serverConnectionHandlerID) if invokerID == _clid: self.checkAllUsers()
def onClientMoveEvent(self, serverConnectionHandlerID, clientID, oldChannelID, newChannelID, visibility, moveMessage): if self.toggle: (error, _clid) = ts3.getClientID(serverConnectionHandlerID) if clientID != _clid and oldChannelID == 0: self.requested = True ts3.requestClientVariables(serverConnectionHandlerID, clientID)
def onClientMoveEvent(self, serverConnectionHandlerID, clientID, oldChannelID, newChannelID, visibility, moveMessage): if self.toggle: (error, _clid) = ts3.getClientID(serverConnectionHandlerID) if clientID != _clid and oldChannelID == 0: schid = ts3.getCurrentServerConnectionHandlerID() (error, uid) = ts3.getClientVariableAsString( schid, clientID, ts3defines.ClientProperties.CLIENT_UNIQUE_IDENTIFIER) self.checkUser(uid)
def checkAllUsers(self): if self.toggle: _schid = ts3.getCurrentServerConnectionHandlerID() (error, _clid) = ts3.getClientID(_schid) (error, cl) = ts3.getClientList(_schid) for user in cl: if user != _clid: (error, uid) = ts3.getClientVariableAsString( _schid, user, ts3defines.ClientProperties.CLIENT_UNIQUE_IDENTIFIER) self.checkUser(uid)
def onClientChannelGroupChangedEvent(self, serverConnectionHandlerID, channelGroupID, channelID, clientID, invokerClientID, invokerName, invokerUniqueIdentity): if self.toggle: (error, _clid) = ts3.getClientID(serverConnectionHandlerID) if clientID == _clid: if channelGroupID == self.sagroup: if self.ownchannels.__contains__(channelID): _t = False else: self.ownchannels.append(channelID)
def onMenuItemEvent(self, schid, atype, menuItemID, selectedItemID): if atype == ts3defines.PluginMenuType.PLUGIN_MENU_TYPE_GLOBAL: if menuItemID == 0: schid = ts3.getCurrentServerConnectionHandlerID() error, ownid = ts3.getClientID(schid) if error == ts3defines.ERROR_ok: error, meta = ts3.getClientVariableAsString(schid, ownid, ts3defines.ClientProperties.CLIENT_META_DATA) if error == ts3defines.ERROR_ok: x = QWidget() meta = QInputDialog.getMultiLineText(x, "Change own Meta Data", "Meta Data:", meta) error = ts3.setClientSelfVariableAsString(schid, ts3defines.ClientProperties.CLIENT_META_DATA, meta) if not error == ts3defines.ERROR_ok: _t = QMessageBox(QMessageBox.Critical, "Error", "Unable to set own meta data!");t.show()
def onClientChannelGroupChangedEvent(self, serverConnectionHandlerID, channelGroupID, channelID, clientID, invokerClientID, invokerName, invokerUniqueIdentity): if self.toggle: schid = ts3.getCurrentServerConnectionHandlerID() (error, cID) = ts3.getClientID(schid) if error == ts3defines.ERROR_ok: if cID == clientID: (error, cgID) = ts3.getClientVariableAsInt( schid, cID, ts3defines.ClientPropertiesRare. CLIENT_CHANNEL_GROUP_ID) for _group in self.smgroup: if cgID == _group: ts3.setClientSelfVariableAsInt( schid, ts3defines.ClientPropertiesRare. CLIENT_IS_CHANNEL_COMMANDER, 1) ts3.flushClientSelfUpdates(schid) break
def processCommand(self, schid, command): tokens = command.split(' ') if tokens[0] == "pcmd": ts3.sendPluginCommand( schid, tokens[1], ts3defines.PluginTargetMode.PluginCommandTarget_SERVER, []) return True elif tokens[0] == "meta": if tokens[1] == "get": schid = ts3.getCurrentServerConnectionHandlerID() error, ownid = ts3.getClientID(schid) if error == ts3defines.ERROR_ok: # requestClientVariables(schid, ownid) error, meta = ts3.getClientVariableAsString( schid, ownid, ts3defines.ClientProperties.CLIENT_META_DATA) if error == ts3defines.ERROR_ok: ts3.printMessageToCurrentTab(meta) return True else: ts3.printMessageToCurrentTab( "Error: Can't get own meta data.") return True else: ts3.printMessageToCurrentTab( "Error: Can't get own clientID.") return True elif tokens[1] == "set": schid = ts3.getCurrentServerConnectionHandlerID() error = ts3.setClientSelfVariableAsString( schid, ts3defines.ClientProperties.CLIENT_META_DATA, tokens[2]) if not error == ts3defines.ERROR_ok: ts3.printMessageToCurrentTab( "Error: Unable to set own meta data.") return True else: return True else: ts3.printMessageToCurrentTab("ERROR: Command \"" + tokens[0] + "\" not found!") return True return False
def onMenuItemEvent(self, schid, atype, menuItemID, selectedItemID): if atype == ts3defines.PluginMenuType.PLUGIN_MENU_TYPE_GLOBAL: if menuItemID == 0: schid = ts3.getCurrentServerConnectionHandlerID() error, ownid = ts3.getClientID(schid) if error == ts3defines.ERROR_ok: error, meta = ts3.getClientVariableAsString( schid, ownid, ts3defines.ClientProperties.CLIENT_META_DATA) if error == ts3defines.ERROR_ok: x = QWidget() meta = QInputDialog.getMultiLineText( x, "Change own Meta Data", "Meta Data:", meta) error = ts3.setClientSelfVariableAsString( schid, ts3defines.ClientProperties.CLIENT_META_DATA, meta) if not error == ts3defines.ERROR_ok: _t = QMessageBox(QMessageBox.Critical, "Error", "Unable to set own meta data!") t.show()
def updateDisplay(self): self.g15.clear() schid = ts3.getCurrentServerConnectionHandlerID() (err, myid) = ts3.getClientID(schid) if schid > 0 else (0, 0) if err == ts3defines.ERROR_ok: (err, chan) = ts3.getChannelOfClient( schid, myid) if myid > 0 else (0, 0) if err == ts3defines.ERROR_ok: (err, channame) = ts3.getChannelVariableAsString( schid, chan, ts3defines.ChannelProperties.CHANNEL_NAME ) if chan > 0 else (0, "TS3") if err == ts3defines.ERROR_ok: title = "[%s]" % channame (err, away) = ts3.getClientSelfVariableAsInt( schid, ts3defines.ClientPropertiesRare.CLIENT_AWAY) if err == ts3defines.ERROR_ok and away: title += " Away" (err1, inmute) = ts3.getClientSelfVariableAsInt( schid, ts3defines.ClientProperties.CLIENT_INPUT_MUTED) (err2, outmute) = ts3.getClientSelfVariableAsInt( schid, ts3defines.ClientProperties.CLIENT_OUTPUT_MUTED) if (inmute + outmute) >= 1: title += " Mute:" if err1 == ts3defines.ERROR_ok and inmute: title += " in" if err2 == ts3defines.ERROR_ok and outmute: title += " out" self.render_string(title, 0) for i, name in enumerate(self.talkernames): self.render_string(name, i + 1) #self.g15.render_string(name, i +1, g15daemon.G15_TEXT_LARGE, 0, 0) self.g15.display() return self.g15.render_string("TS3 ERROR!", 0, g15daemon.G15_TEXT_LARGE, 0, 0) self.g15.display()
def processCommand(self, schid, command): tokens = command.split(' ') if len(tokens) == 0: return True (err, myid) = ts3.getClientID(schid) if err != ts3defines.ERROR_ok: ts3.printMessageToCurrentTab("Error getting client id: (%s, %s)" % (err, ts3.getErrorMessage(err)[1])) return True (err, cid) = ts3.getChannelOfClient(schid, myid) if err != ts3defines.ERROR_ok: ts3.printMessageToCurrentTab("Error getting channel id: (%s, %s)" % (err, ts3.getErrorMessage(err)[1])) return True if tokens[0] == "time": err = ts3.requestSendChannelTextMsg(schid, "It's %s" % time.asctime(time.localtime(time.time())), cid) if err != ts3defines.ERROR_ok: ts3.printMessageToCurrentTab("Error sending txt message: (%s, %s)" % (err, ts3.getErrorMessage(err)[1])) return True elif tokens[0] == "greet": (err, svname) = ts3.getServerVariableAsString(schid, ts3defines.VirtualServerProperties.VIRTUALSERVER_NAME) if err != ts3defines.ERROR_ok: ts3.printMessageToCurrentTab("Error getting server name: (%s, %s)" % (err, ts3.getErrorMessage(err)[1])) return True (err, cname) = ts3.getChannelVariableAsString(schid, cid, ts3defines.ChannelProperties.CHANNEL_NAME) if err != ts3defines.ERROR_ok: ts3.printMessageToCurrentTab("Error getting channel name: (%s, %s)" % (err, ts3.getErrorMessage(err)[1])) return True err = ts3.requestSendChannelTextMsg(schid, "Welcome in %s on %s" % (cname, svname), cid) if err != ts3defines.ERROR_ok: ts3.printMessageToCurrentTab("Error sending txt message: (%s, %s)" % (err, ts3.getErrorMessage(err)[1])) return True
def infoData(cls, schid, id, atype): i = [] schid = ts3.getCurrentServerConnectionHandlerID() if atype == 0: i.append('{:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now())) i.append('Type: [b]Server[/b]') i.append("Server Connection Handler ID: " + str(schid)) #ts3.requestServerVariables(schid) (error, id) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare.VIRTUALSERVER_ID) if error == ts3defines.ERROR_ok: i.append("Virtualserver ID: " + id) (error, mid) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_MACHINE_ID) if error == ts3defines.ERROR_ok: i.append("Machine ID: " + mid) (error, uid) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerProperties. VIRTUALSERVER_UNIQUE_IDENTIFIER) if error == ts3defines.ERROR_ok: i.append("Unique ID: " + uid) (error, gip) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare.VIRTUALSERVER_IP) if error == ts3defines.ERROR_ok: i.append("IP: " + gip) (error, clid) = ts3.getClientID(schid) if error == ts3defines.ERROR_ok: (error, ip) = ts3.getConnectionVariableAsString(schid, clid, 6) if error == ts3defines.ERROR_ok and ip != gip: i.append("Connect IP: " + ip) (error, created) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerProperties.VIRTUALSERVER_CREATED) if error == ts3defines.ERROR_ok: created = datetime.datetime.fromtimestamp( int(created)).strftime('%Y-%m-%d %H:%M:%S') i.append("Created: " + str(created)) (error, mbu) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_MONTH_BYTES_UPLOADED) (error, mbd) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_MONTH_BYTES_DOWNLOADED) if error == ts3defines.ERROR_ok: i.append("Monthly Traffic: Up: [color=blue]" + mbu + "[/color] B | Down: [color=red]" + mbd + "[/color] B") (error, tbu) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_TOTAL_BYTES_UPLOADED) (error, tbd) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_TOTAL_BYTES_DOWNLOADED) if error == ts3defines.ERROR_ok: i.append("Total Traffic: Up: [color=darkblue]" + tbu + "[/color] B | Down: [color=firebrick]" + tbd + "[/color] B") (error, tpt) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_TOTAL_PACKETLOSS_TOTAL) (error, tpk) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_TOTAL_PACKETLOSS_KEEPALIVE) (error, tpc) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_TOTAL_PACKETLOSS_CONTROL) (error, tps) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_TOTAL_PACKETLOSS_SPEECH) if error == ts3defines.ERROR_ok: i.append("Loss Total: [color=magenta]" + tpt + "[/color]% | Keepalive: [color=magenta]" + tpk + "[/color]% | Control: [color=magenta]" + tpc + "[/color]% | Speech: [color=magenta]" + tps + "[/color]%") (error, ping) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_TOTAL_PING) if error == ts3defines.ERROR_ok: i.append("Ping: " + ping + "ms") (error, icon) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare.VIRTUALSERVER_ICON_ID) if error == ts3defines.ERROR_ok: i.append('Icon ID: ' + icon) (error, aptr) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_ANTIFLOOD_POINTS_TICK_REDUCE) if error == ts3defines.ERROR_ok: i.append("Points per tick: " + aptr) (error, apncb) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_ANTIFLOOD_POINTS_NEEDED_COMMAND_BLOCK) if error == ts3defines.ERROR_ok: i.append("Points to block commands: " + apncb) (error, apnib) = ts3.getServerVariableAsString( schid, ts3defines.VirtualServerPropertiesRare. VIRTUALSERVER_ANTIFLOOD_POINTS_NEEDED_IP_BLOCK) if error == ts3defines.ERROR_ok: i.append("Points to block IP: " + apnib) return i elif atype == 1: i.append('{:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now())) i.append('Type: [b]Channel[/b]') (error, phonick) = ts3.getChannelVariableAsString( schid, id, ts3defines.ChannelPropertiesRare.CHANNEL_NAME_PHONETIC) if error == ts3defines.ERROR_ok and phonick != "": i.append("Phonetic Nickname: " + phonick) (error, icon) = ts3.getChannelVariableAsString( schid, id, ts3defines.ChannelPropertiesRare.CHANNEL_ICON_ID) if error == ts3defines.ERROR_ok and icon != "0": i.append("Icon ID: " + icon) (error, forcedsilence) = ts3.getChannelVariableAsInt( schid, id, ts3defines.ChannelPropertiesRare.CHANNEL_FORCED_SILENCE) if error == ts3defines.ERROR_ok: if forcedsilence == 1: i.append("Forced Silence: [color=red]YES[/color]") else: i.append("Forced Silence: [color=green]NO[/color]") (error, private) = ts3.getChannelVariableAsString( schid, id, ts3defines.ChannelPropertiesRare.CHANNEL_FLAG_PRIVATE) if error == ts3defines.ERROR_ok: if private == 1: i.append("Private Channel: [color=red]YES[/color]") else: i.append("Private Channel: [color=green]NO[/color]") (error, latency) = ts3.getChannelVariableAsString( schid, id, ts3defines.ChannelProperties.CHANNEL_CODEC_LATENCY_FACTOR) if error == ts3defines.ERROR_ok: i.append("Latency Factor: " + latency) (error, salt) = ts3.getChannelVariableAsString( schid, id, ts3defines.ChannelProperties.CHANNEL_SECURITY_SALT) if error == ts3defines.ERROR_ok and salt != "": i.append("Security Salt: " + salt) (error, pwd) = ts3.getChannelVariableAsString( schid, id, ts3defines.ChannelProperties.CHANNEL_PASSWORD) if error == ts3defines.ERROR_ok and pwd != "" and pwd != "dummy": i.append("Password: "******"": i.append("Filepath: " + filepath) return i elif atype == 2: i.append('{:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now())) #ts3.requestClientVariables(schid, id)#ts3.requestConnectioni(schid, id) (error, type) = ts3.getClientVariableAsInt( schid, id, ts3defines.ClientPropertiesRare.CLIENT_TYPE) if error == ts3defines.ERROR_ok: if type == ts3defines.ClientType.ClientType_NORMAL: i.append('Type: [b]Client[/b]') elif type == ts3defines.ClientType.ClientType_SERVERQUERY: i.append('Type: [b]ServerQuery[/b]') else: i.append('Type: [b]Unknown (' + str(type) + ')[/b]') (error, country) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_COUNTRY) if error == ts3defines.ERROR_ok: #if colored: i.append("Country: [color=darkgreen]" + country + "[/color]") #else: #i.append("Country: "+country) (error, phonick) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_NICKNAME_PHONETIC) if error == ts3defines.ERROR_ok and phonick != "": i.append("Phonetic Nick: " + phonick) (error, unread) = ts3.getClientVariableAsInt( schid, id, ts3defines.ClientPropertiesRare.CLIENT_UNREAD_MESSAGES) if error == ts3defines.ERROR_ok: if unread == 0: i.append("No unread offline messages.") else: i.append("[color=blue][b]" + str(unread) + "[/b][/color] unread offline messages") (error, icon) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_ICON_ID) if error == ts3defines.ERROR_ok and icon != "0": i.append("Icon ID: " + icon) (error, tp) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_TALK_POWER) if error == ts3defines.ERROR_ok: i.append("Talk Power: " + tp) (error, avatar) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_FLAG_AVATAR) if error == ts3defines.ERROR_ok and avatar != "": i.append("Avatar Flag: " + avatar) (error, cgid) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_CHANNEL_GROUP_ID) if error == ts3defines.ERROR_ok: i.append("Channel Group: " + cgid) (error, sgids) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_SERVERGROUPS) if error == ts3defines.ERROR_ok: i.append("Server Groups: " + sgids) (error, sqnvp) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare. CLIENT_NEEDED_SERVERQUERY_VIEW_POWER) if error == ts3defines.ERROR_ok: i.append("Needed SQ View Power: " + sqnvp) (error, clb) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_BADGES) if error == ts3defines.ERROR_ok and clb != "Overwolf=0": i.append("Badges: " + clb) (error, mmbu) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_MONTH_BYTES_UPLOADED) (error, mmbd) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_MONTH_BYTES_DOWNLOADED) if error == ts3defines.ERROR_ok and mmbu != "0" and mmbd != "0": i.append("Monthly Traffic: Up: [color=blue]" + mmbu + "[/color] B | Down: [color=red]" + mmbd + "[/color] B") (error, tmbu) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_TOTAL_BYTES_UPLOADED) (error, tmbd) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientPropertiesRare.CLIENT_TOTAL_BYTES_DOWNLOADED) if error == ts3defines.ERROR_ok and tmbu != "0" and tmbd != "0": i.append("Total Traffic: Up: [color=darkblue]" + tmbu + "[/color] B | Down: [color=firebrick]" + tmbd + "[/color] B") (error, version) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientProperties.CLIENT_VERSION) if error == ts3defines.ERROR_ok: i.append("Version: " + version) if info.meta: (error, meta) = ts3.getClientVariableAsString( schid, id, ts3defines.ClientProperties.CLIENT_META_DATA) if error == ts3defines.ERROR_ok and meta != "": i.append("Meta Data: " + meta) return i else: return ["ItemType \"" + str(atype) + "\" unknown."]