added askin_username getter & setter
This commit is contained in:
parent
2970878bce
commit
6c53169f09
@ -83,6 +83,9 @@ enum WHY2_CHAT_SERVER_TYPE //TYPE OF SERVER
|
||||
void __why2_set_asking_password(why2_bool value); //IF HASH SHOULD BE SENT INSTEAD OF NORMAL MESSAGE
|
||||
why2_bool __why2_get_asking_password();
|
||||
|
||||
void __why2_set_asking_username(why2_bool value);
|
||||
why2_bool __why2_get_asking_username();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -22,6 +22,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#include <termios.h>
|
||||
|
||||
why2_bool asking_password = 0;
|
||||
why2_bool asking_username = 0;
|
||||
|
||||
void __why2_set_asking_password(why2_bool value)
|
||||
{
|
||||
@ -44,4 +45,14 @@ void __why2_set_asking_password(why2_bool value)
|
||||
why2_bool __why2_get_asking_password()
|
||||
{
|
||||
return asking_password;
|
||||
}
|
||||
|
||||
void __why2_set_asking_username(why2_bool value)
|
||||
{
|
||||
asking_username = value;
|
||||
}
|
||||
|
||||
why2_bool __why2_get_asking_username()
|
||||
{
|
||||
return asking_username;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user