1.1 --- a/core/AdminCache.cpp Wed Nov 19 02:38:28 2008 -0600
1.2 +++ b/core/AdminCache.cpp Tue Nov 25 19:13:08 2008 +1300
1.3 @@ -1182,6 +1182,12 @@
1.4 return false;
1.5 }
1.6
1.7 + /* If the id was a steam id strip off the STEAM_*: part */
1.8 + if (strcmp(auth, "steam") == 0 && strncmp(ident, "STEAM_", 6) == 0)
1.9 + {
1.10 + ident += 8;
1.11 + }
1.12 +
1.13 if (sm_trie_retrieve(pTable, ident, NULL))
1.14 {
1.15 return false;
1.16 @@ -1204,6 +1210,12 @@
1.17 return INVALID_ADMIN_ID;
1.18 }
1.19
1.20 + /* If the id was a steam id strip off the STEAM_*: part */
1.21 + if (strcmp(auth, "steam") == 0 && strncmp(identity, "STEAM_", 6) == 0)
1.22 + {
1.23 + identity += 8;
1.24 + }
1.25 +
1.26 void *object;
1.27 if (!sm_trie_retrieve(pTable, identity, &object))
1.28 {