diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-04 07:53:56 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-08-04 07:53:56 +0000 |
commit | 0d189c79a2d3be98e176987e6aca15fd2c618ef0 (patch) | |
tree | 6cf35974cd1384c7826bec323b26fd79fd0566aa /src/dalstorage.h | |
parent | aa4de5dfa66533be42478ec2526307a46e1fc9c6 (diff) | |
download | manaserv-0d189c79a2d3be98e176987e6aca15fd2c618ef0.tar.gz manaserv-0d189c79a2d3be98e176987e6aca15fd2c618ef0.tar.bz2 manaserv-0d189c79a2d3be98e176987e6aca15fd2c618ef0.tar.xz manaserv-0d189c79a2d3be98e176987e6aca15fd2c618ef0.zip |
Strengthened checks for already existing character name or email address.
Diffstat (limited to 'src/dalstorage.h')
-rw-r--r-- | src/dalstorage.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dalstorage.h b/src/dalstorage.h index ec80a8cc..b5e7c03b 100644 --- a/src/dalstorage.h +++ b/src/dalstorage.h @@ -98,18 +98,16 @@ class DALStorage: public Storage getEmailList(); /** - * Return the number of same Emails in account's table. - * @return Number of same Email. + * Tells if the email address already exists. + * @return true if the email address exists. */ - unsigned int - getSameEmailNumber(const std::string &email); + bool doesEmailAddressExist(std::string const &email); /** * Tells if the character's name already exists * @return true if character's name exists. */ - bool - doesCharacterNameExists(const std::string &name); + bool doesCharacterNameExist(std::string const &name); /** * Tells the map name from the map id |