python-ts3
python-ts3 copied to clipboard
On connection fail, make error message available
If you get banned by the server, it would be nice to be able to get the error message.
Example:
$ telnet somehost 10011 Trying 1.2.3.4... Connected to somehost. Escape character is '^]'. TS3 Welcome to the TeamSpeak 3 ServerQuery interface, type "help" for a list of commands and "help <command>" for information on a specific command. error id=3329 msg=connection\sfailed,\syou\sare\sbanned extra_msg=you\smay\sretry\sin\s226\sseconds\n\rConnection closed by foreign host.