summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-22 13:16:16 -0700
committerirungentoo <irungentoo@gmail.com>2013-09-22 13:16:16 -0700
commitc43ad78ce71901570f5d215c7a5e0fd90a7f3f5b (patch)
tree9ce4539e796559a3dce55827632366c700a28acf
parentbb6566e436ffb451f84143288e9b89453aae1ec2 (diff)
parentf4163e324b6c3e088501f7ecec78753933178db8 (diff)
Merge pull request #601 from maksqwe/master
Fix typo. "if (yesno != 0 || yesno != 1)" always true
-rw-r--r--toxcore/Messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 32e81389..b5da12ba 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -538,7 +538,7 @@ static void set_friend_userstatus(Messenger *m, int friendnumber, USERSTATUS sta
538/* Sets whether we send read receipts for friendnumber. */ 538/* Sets whether we send read receipts for friendnumber. */
539void m_set_sends_receipts(Messenger *m, int friendnumber, int yesno) 539void m_set_sends_receipts(Messenger *m, int friendnumber, int yesno)
540{ 540{
541 if (yesno != 0 || yesno != 1) 541 if (yesno != 0 && yesno != 1)
542 return; 542 return;
543 543
544 if (friend_not_valid(m, friendnumber)) 544 if (friend_not_valid(m, friendnumber))