mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix typo. "if (yesno != 0 || yesno != 1)" always true
This commit is contained in:
parent
bb6566e436
commit
f4163e324b
|
@ -538,7 +538,7 @@ static void set_friend_userstatus(Messenger *m, int friendnumber, USERSTATUS sta
|
||||||
/* Sets whether we send read receipts for friendnumber. */
|
/* Sets whether we send read receipts for friendnumber. */
|
||||||
void m_set_sends_receipts(Messenger *m, int friendnumber, int yesno)
|
void m_set_sends_receipts(Messenger *m, int friendnumber, int yesno)
|
||||||
{
|
{
|
||||||
if (yesno != 0 || yesno != 1)
|
if (yesno != 0 && yesno != 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (friend_not_valid(m, friendnumber))
|
if (friend_not_valid(m, friendnumber))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user