From 9f982fe1a4728dbbcbd5089f6d4b6c4e08414b6a Mon Sep 17 00:00:00 2001 From: David Athay Date: Thu, 28 Aug 2008 13:34:31 +0000 Subject: Set banned user's level to AL_BANNED --- src/account-server/dalstorage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/account-server/dalstorage.cpp') 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()); } -- cgit v1.2.3-60-g2f50