diff --git a/include/chat/flags.h b/include/chat/flags.h index c678894..dbca5ca 100644 --- a/include/chat/flags.h +++ b/include/chat/flags.h @@ -61,7 +61,7 @@ extern "C" { #define WHY2_CHAT_CODE_SSQC WHY2_CHAT_CODE_SERVER_SIDE_QUIT_COMMUNICATION //FUNCTIONS -void __why2_set_asking_password(unsigned char asking_password); //IF HASH SHOULD BE SENT INSTEAD OF NORMAL MESSAGE +void __why2_increment_asking_password(unsigned char asking_password); //IF HASH SHOULD BE SENT INSTEAD OF NORMAL MESSAGE void __why2_reset_asking_password(); #ifdef __cplusplus diff --git a/src/chat/flags.c b/src/chat/flags.c index 731af2e..48bcdb0 100644 --- a/src/chat/flags.c +++ b/src/chat/flags.c @@ -18,14 +18,14 @@ along with this program. If not, see . #include -unsigned char asking_password_flag = 0; +unsigned char asking_password = 0; -void __why2_set_asking_password(unsigned char asking_password) +void __why2_increment_asking_password() { - asking_password_flag = asking_password; + asking_password++; } void __why2_reset_asking_password() { - asking_password_flag = 0; + asking_password = 0; } \ No newline at end of file