Skip to content

Commit

Permalink
Suppress blank casefold to prevent spurious folding
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Sep 10, 2023
1 parent 86e6375 commit 502e67d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/http/chan_commands.pike
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ echoable_message _validate(echoable_message resp, mapping state)
if (resp[key]) ret[key] = resp[key];
ret->otherwise = _validate(resp->otherwise, state);
if (ret->message == "" && ret->otherwise == "") return ""; //Conditionals can omit either message or otherwise, but not both
if (ret->casefold == "") m_delete(ret, "casefold"); //Blank means not case folded, so omit it
if (ret->conditional == "cooldown") {
ret->cdname = normalize_cooldown_name(ret->cdname, state);
ret->cdlength = (int)ret->cdlength;
Expand Down

0 comments on commit 502e67d

Please sign in to comment.