aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver/Authentication/AuthCodes.cpp
blob: 36c4a35538604c50ec8bed5edc6184c0326d31b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "AuthCodes.h"

namespace AuthHelper
{
    bool IsAcceptedBuild(int build)
    {
        static int accepted_versions[] = TRINITYCORE_ACCEPTED_CLIENT_BUILD;

        for (int i = 0; accepted_versions[i]; ++i)
            if (build == accepted_versions[i])
                return true;

        return false;
    }

    bool IsAcceptedClientBuild(int build)
    {
        return (IsAcceptedBuild(build));
    }
};