diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | accountserver.cbp | 1 | ||||
-rw-r--r-- | src/account-server/dalstorage.cpp | 3 |
3 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2008-08-28 David Athay <ko2fan@gmail.com> + + * src/account-server/dalstorage.cpp: Set banned user's level to + AL_BANNED. + 2008-08-18 Roderic Morris <roderic@ccs.neu.edu> * src/game-server/mapreader.cpp: fix compilation on gcc 4.3. diff --git a/accountserver.cbp b/accountserver.cbp index 44758ed..4aa39c4 100644 --- a/accountserver.cbp +++ b/accountserver.cbp @@ -30,6 +30,7 @@ <Option compiler="gcc" /> <Option use_console_runner="0" /> <Compiler> + <Add option="-g" /> <Add option="-DSQLITE_SUPPORT" /> <Add directory="src" /> <Add directory="/usr/local/include/libxml2" /> diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp index cae4bce..cd618a4 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()); } |