summaryrefslogtreecommitdiff
path: root/src/account-server/dalstorage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server/dalstorage.cpp')
-rw-r--r--src/account-server/dalstorage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp
index 72d1d899..785e8943 100644
--- a/src/account-server/dalstorage.cpp
+++ b/src/account-server/dalstorage.cpp
@@ -396,8 +396,9 @@ Character *DALStorage::getCharacter(int id, Account *owner)
*/
Character *DALStorage::getCharacter(const std::string &name)
{
- // TODO: Get character, this most likely needs to find the account first.
- return NULL;
+ std::ostringstream sql;
+ sql << "select * from " << CHARACTERS_TBL_NAME << " where name = \"" << name << "\";";
+ return getCharacterBySQL(sql.str(), NULL);
}