Fix bug when removing areas
This commit is contained in:
parent
a9c73f15a6
commit
c36b8d348e
@ -552,18 +552,18 @@ struct user_record *check_user_pass(char *loginname, char *password) {
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
if (user->cur_mail_conf > conf.mail_conference_count) {
|
||||
if (user->cur_mail_conf >= conf.mail_conference_count) {
|
||||
user->cur_mail_conf = 0;
|
||||
}
|
||||
if (user->cur_file_dir > conf.file_directory_count) {
|
||||
if (user->cur_file_dir >= conf.file_directory_count) {
|
||||
user->cur_file_dir = 0;
|
||||
}
|
||||
|
||||
if (user->cur_mail_area > conf.mail_conferences[user->cur_mail_conf]->mail_area_count) {
|
||||
if (user->cur_mail_area >= conf.mail_conferences[user->cur_mail_conf]->mail_area_count) {
|
||||
user->cur_mail_area = 0;
|
||||
}
|
||||
|
||||
if (user->cur_file_sub > conf.file_directories[user->cur_file_dir]->file_sub_count) {
|
||||
if (user->cur_file_sub >= conf.file_directories[user->cur_file_dir]->file_sub_count) {
|
||||
user->cur_file_sub = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user