From f4163e324b6c3e088501f7ecec78753933178db8 Mon Sep 17 00:00:00 2001 From: Maks Date: Sun, 22 Sep 2013 22:36:45 +0300 Subject: Fix typo. "if (yesno != 0 || yesno != 1)" always true --- toxcore/Messenger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 /* Sets whether we send read receipts for friendnumber. */ void m_set_sends_receipts(Messenger *m, int friendnumber, int yesno) { - if (yesno != 0 || yesno != 1) + if (yesno != 0 && yesno != 1) return; if (friend_not_valid(m, friendnumber)) -- cgit v1.2.3