• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

status list.xml warning

Na Amigo

The crazy girl
Joined
Jun 5, 2017
Messages
254
Solutions
3
Reaction score
18
Location
Egypt
why this error appear? i am using forgotten server 0.3.7_svn client 8.6 if the error from
statuslist.xml i don't have the file
DDFeEO.png
 
I don't think it affects anything on the server, although I'm not sure what it does.
 
C++:
{
    xmlDocPtr doc = xmlParseFile("http://forgottenserver.otland.net/statuslist.xml");
    if(!doc)
        return false;

    xmlNodePtr p, root = xmlDocGetRootElement(doc);
    if(!xmlStrcmp(root->name, (const xmlChar*)"statuslist"))
    {
        p = root->children;
        while(p)
        {
            if(!xmlStrcmp(p->name, (const xmlChar*)"blacklist"))
            {
                std::string ip;
                if(readXMLString(p, "ip", ip))
                    blacklist.push_back(ip);
            }
            else if(!xmlStrcmp(p->name, (const xmlChar*)"whitelist"))
            {
                std::string ip;
                if(readXMLString(p, "ip", ip))
                    whitelist.push_back(ip);
            }

            p = p->next;
        }
    }

    xmlFreeDoc(doc);
    return true;
}

If I remove this code will I have future problems?
 
C++:
{
    xmlDocPtr doc = xmlParseFile("http://forgottenserver.otland.net/statuslist.xml");
    if(!doc)
        return false;

    xmlNodePtr p, root = xmlDocGetRootElement(doc);
    if(!xmlStrcmp(root->name, (const xmlChar*)"statuslist"))
    {
        p = root->children;
        while(p)
        {
            if(!xmlStrcmp(p->name, (const xmlChar*)"blacklist"))
            {
                std::string ip;
                if(readXMLString(p, "ip", ip))
                    blacklist.push_back(ip);
            }
            else if(!xmlStrcmp(p->name, (const xmlChar*)"whitelist"))
            {
                std::string ip;
                if(readXMLString(p, "ip", ip))
                    whitelist.push_back(ip);
            }

            p = p->next;
        }
    }

    xmlFreeDoc(doc);
    return true;
}

If I remove this code will I have future problems?
So where to find this?
 
Back
Top