Merge pull request #153 from alliedmodders/auth-fixups

More auth fixups for Steam auth (bug 6243, r=asherkin).
This commit is contained in:
Nicholas Hastings
2014-09-09 16:24:57 -04:00
11 changed files with 283 additions and 126 deletions
+7
View File
@@ -98,6 +98,13 @@ DecodeAuthMethod(const String:auth[], String:method[32], &offset)
{
if ((StrContains(auth, "STEAM_") == 0) || (strncmp("0:", auth, 2) == 0) || (strncmp("1:", auth, 2) == 0))
{
// Steam2 Id
strcopy(method, sizeof(method), AUTHMETHOD_STEAM);
offset = 0;
}
else if (!strncmp(auth, "[U:", 3) && auth[strlen(auth) - 1] == ']')
{
// Steam3 Id
strcopy(method, sizeof(method), AUTHMETHOD_STEAM);
offset = 0;
}