Skip to content

Commit

Permalink
Set the flags for both true and false, not just true cases
Browse files Browse the repository at this point in the history
  • Loading branch information
wwiv committed Mar 27, 2021
1 parent 7b5fdbd commit 23ae3dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bbs/read_message.cpp
Expand Up @@ -472,6 +472,15 @@ static std::tuple<bool, int> display_header_file(Type2MessageData& msg) {
a()->context().add_context_variable("msg", m);

std::map<std::string, std::string> flags;
// Set defaults.
flags["forced"] = "false";
flags["not_net_val"] = "false";
flags["not_val"] = "false";
flags["permanent"] = "false";
flags["local"] = "false";
flags["ftn"] = "false";
flags["private"] = "false";
flags["wwivnet"] = "false";
for (const auto& f : msg.flags) {
switch (f) {
case MessageFlags::FORCED:
Expand Down

0 comments on commit 23ae3dd

Please sign in to comment.