From 77a43aa53ab0a829a77499b85d78a8b67ec504b2 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 13 Apr 2008 11:02:47 +0200 Subject: [PATCH] teamspeak2 plugin: Inform about unknown fields. Known but uninteresting fields are ignored. --- src/teamspeak2.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/teamspeak2.c b/src/teamspeak2.c index 2b1972fb..e258645b 100644 --- a/src/teamspeak2.c +++ b/src/teamspeak2.c @@ -538,10 +538,32 @@ static int tss2_read_vserver (vserver_list_t *vserver) if (value != endptr) valid |= 0x10; } + else if ((strncmp ("allow_codec_", key, strlen ("allow_codec_")) == 0) + || (strncmp ("bwinlast", key, strlen ("bwinlast")) == 0) + || (strncmp ("bwoutlast", key, strlen ("bwoutlast")) == 0) + || (strncmp ("webpost_", key, strlen ("webpost_")) == 0) + || (strcmp ("adminemail", key) == 0) + || (strcmp ("clan_server", key) == 0) + || (strcmp ("countrynumber", key) == 0) + || (strcmp ("id", key) == 0) + || (strcmp ("ispname", key) == 0) + || (strcmp ("linkurl", key) == 0) + || (strcmp ("maxusers", key) == 0) + || (strcmp ("name", key) == 0) + || (strcmp ("password", key) == 0) + || (strcmp ("platform", key) == 0) + || (strcmp ("server_platform", key) == 0) + || (strcmp ("server_uptime", key) == 0) + || (strcmp ("server_version", key) == 0) + || (strcmp ("udpport", key) == 0) + || (strcmp ("uptime", key) == 0) + || (strcmp ("users_maximal", key) == 0) + || (strcmp ("welcomemessage", key) == 0)) + /* ignore */; else { - DEBUG ("teamspeak2 plugin: Unknown key-value-pair: key = %s; value = %s;", - key, value); + INFO ("teamspeak2 plugin: Unknown key-value-pair: " + "key = %s; value = %s;", key, value); } } /* while (42) */ -- 2.30.2