diff options
author | David Athay <ko2fan@gmail.com> | 2008-08-28 13:34:31 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-08-28 13:34:31 +0000 |
commit | 9f982fe1a4728dbbcbd5089f6d4b6c4e08414b6a (patch) | |
tree | 53748bb23354fc42598af5c36174811e7da11212 /src | |
parent | ea1287bed502f43a1c00601e2a236fcbd5b29bdc (diff) | |
download | manaserv-9f982fe1a4728dbbcbd5089f6d4b6c4e08414b6a.tar.gz manaserv-9f982fe1a4728dbbcbd5089f6d4b6c4e08414b6a.tar.bz2 manaserv-9f982fe1a4728dbbcbd5089f6d4b6c4e08414b6a.tar.xz manaserv-9f982fe1a4728dbbcbd5089f6d4b6c4e08414b6a.zip |
Set banned user's level to AL_BANNED
Diffstat (limited to 'src')
-rw-r--r-- | src/account-server/dalstorage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp index cae4bcec..cd618a43 100644 --- a/src/account-server/dalstorage.cpp +++ b/src/account-server/dalstorage.cpp @@ -1096,7 +1096,8 @@ void DALStorage::banCharacter(int id, int duration) std::ostringstream sql; sql << "update " << ACCOUNTS_TBL_NAME - << " set banned = '" << time(NULL) + duration * 60 + << " set level = '" << AL_BANNED << "', banned = '" + << time(NULL) + duration * 60 << "' where id = '" << info(0, 0) << "';"; mDb->execSql(sql.str()); } |