summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f499e15)
raw | patch | inline | side by side (parent: f499e15)
author | Florian Forster <octo@huhu.verplant.org> | |
Tue, 8 Apr 2008 13:00:01 +0000 (15:00 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 8 Apr 2008 13:00:01 +0000 (15:00 +0200) |
Classes and races were exchanged, this was fixed.
src/ascent.c | patch | blob | history |
diff --git a/src/ascent.c b/src/ascent.c
index b63f73e9539d9d8120825ecf9502712860b7263a..75d5cb6159c98c82586b0d9d30399fd6e051ed1a 100644 (file)
--- a/src/ascent.c
+++ b/src/ascent.c
#include <libxml/parser.h>
static char *races_list[] = /* {{{ */
-{
- NULL,
- "Warrior", /* 1 */
- "Paladin", /* 2 */
- "Hunter", /* 3 */
- "Rogue", /* 4 */
- "Priest", /* 5 */
- NULL,
- "Shaman", /* 7 */
- "Mage", /* 8 */
- "Warlock", /* 9 */
- NULL,
- "Druid" /* 11 */
-}; /* }}} */
-#define RACES_LIST_LENGTH STATIC_ARRAY_SIZE (races_list)
-
-static char *classes_list[] = /* {{{ */
{
NULL,
"Human", /* 1 */
"Bloodelf", /* 10 */
"Draenei" /* 11 */
}; /* }}} */
+#define RACES_LIST_LENGTH STATIC_ARRAY_SIZE (races_list)
+
+static char *classes_list[] = /* {{{ */
+{
+ NULL,
+ "Warrior", /* 1 */
+ "Paladin", /* 2 */
+ "Hunter", /* 3 */
+ "Rogue", /* 4 */
+ "Priest", /* 5 */
+ NULL,
+ "Shaman", /* 7 */
+ "Mage", /* 8 */
+ "Warlock", /* 9 */
+ NULL,
+ "Druid" /* 11 */
+}; /* }}} */
#define CLASSES_LIST_LENGTH STATIC_ARRAY_SIZE (classes_list)
static char *genders_list[] = /* {{{ */
ascent_xml_submit_gauge (doc, child, NULL, "players", "horde");
else if (xmlStrcmp ((const xmlChar *) "qplayers", child->name) == 0)
ascent_xml_submit_gauge (doc, child, NULL, "players", "queued");
+ else if ((xmlStrcmp ((const xmlChar *) "acceptedconns", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "avglat", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "cdbquerysize", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "cpu", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "fthreads", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "gmcount", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "lastupdate", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "ontime", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "oplayers", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "peakcount", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "platform", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "ram", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "threads", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "uptime", child->name) == 0)
+ || (xmlStrcmp ((const xmlChar *) "wdbquerysize", child->name) == 0))
+ /* ignore */;
else
{
WARNING ("ascent plugin: ascent_xml_status: Unknown tag: %s", child->name);