replaced set_asking with increment_asking
This commit is contained in:
parent
357f73ae69
commit
e94a401308
@ -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
|
||||
|
@ -18,14 +18,14 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
#include <why2/chat/flags.h>
|
||||
|
||||
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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user