From 13a48effdbd44a3811f9bcbb0115776ec46c3dfa Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 6 Mar 2008 15:13:14 +0000 Subject: Fixed telling clients what guilds they are in after they reconnect --- src/account-server/dalstorage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/account-server/dalstorage.cpp') diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp index 72d1d89..785e894 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); } -- cgit