Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
how did that even happen
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsupermanhd committed Sep 14, 2024
1 parent 22052f8 commit 93acc74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions messageProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,13 @@ var (

func messageHandlerProcessIdentityJoin(inst *instance, msgb64pubkey string) {
motds := map[string]any{}
for i := len(inst.cfgs) - 1; i >= 0; i++ {
o, ok := cfg.GetKeys("motds")
for i := len(inst.cfgs) - 1; i >= 0; i-- {
o, ok := inst.cfgs[i].GetKeys("motds")
if !ok {
continue
}
for _, k := range o {
s, ok := cfg.GetString("motds", k)
s, ok := inst.cfgs[i].GetString("motds", k)
if ok {
if s == "" {
delete(motds, k)
Expand Down

0 comments on commit 93acc74

Please sign in to comment.