Merge pull request #601 from maksqwe/master

Fix typo. "if (yesno != 0 || yesno != 1)" always true
This commit is contained in:
irungentoo 2013-09-22 13:16:16 -07:00
commit c43ad78ce7

View File

@ -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))