mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-02 02:15:58 -04:00
yay syntax
This commit is contained in:
@@ -249,15 +249,15 @@ void ClientConnection::validateClient(const std::string & id, const std::string
|
||||
|
||||
if (childAccounts.size() == 0) {
|
||||
for (auto i = childAccounts.begin(); i != childAccounts.end(); ++i) {
|
||||
if (!*i.empty()) {
|
||||
std::hash<std::string> tmphash;
|
||||
|
||||
if (*i.length() > MAX_ACCOUNT_NAME_LENGTH) {
|
||||
*i.resize(MAX_ACCOUNT_NAME_LENGTH);
|
||||
if (!i->empty()) {
|
||||
if (i->length() > MAX_ACCOUNT_NAME_LENGTH) {
|
||||
i->resize(MAX_ACCOUNT_NAME_LENGTH);
|
||||
}
|
||||
|
||||
std::hash<std::string> h;
|
||||
|
||||
// insert all related accounts, if not already there, into the db
|
||||
DatabaseConnection::getInstance().upsertAccountRelationship(suid, tmphash(*i));
|
||||
DatabaseConnection::getInstance().upsertAccountRelationship(suid, h(*i));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user