Skip to content

Commit

Permalink
Merge pull request #777 from Expensify/master
Browse files Browse the repository at this point in the history
Update expensify_prod branch
  • Loading branch information
cead22 authored Apr 28, 2020
2 parents fcbcbcb + 2e7136e commit ff30ad9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sqlitecluster/SQLiteNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,10 +1070,10 @@ void SQLiteNode::_onMESSAGE(Peer* peer, const SData& message) {
if (!message.isSet("Version")) {
STHROW("missing Version");
}
if (peer->params["Permafollower"] == "true" && message["Permafollower"] != "true") {
if (peer->params["Permafollower"] == "true" && (message["Permafollower"] != "true" || message.calc("Priority") > 0)) {
STHROW("you're supposed to be a 0-priority permafollower");
}
if (peer->params["Permafollower"] != "true" && message["Permafollower"] == "true") {
if (peer->params["Permafollower"] != "true" && (message["Permafollower"] == "true" || message.calc("Priority") == 0)) {
STHROW("you're *not* supposed to be a 0-priority permafollower");
}

Expand Down

0 comments on commit ff30ad9

Please sign in to comment.