summaryrefslogtreecommitdiff
path: root/src/account-server
diff options
context:
space:
mode:
Diffstat (limited to 'src/account-server')
-rw-r--r--src/account-server/dalstorage.cpp3
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());
}