From 2190f482d10853c306a3c13916df913a98a38391 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 20 Jul 2025 12:41:27 +0100 Subject: [PATCH] user-d: dont bother attempting users w no contact --- user-d.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/user-d.go b/user-d.go index c45cafb..9ed0a90 100644 --- a/user-d.go +++ b/user-d.go @@ -138,6 +138,10 @@ func (app *appContext) checkUsers() { if shouldContact { name := app.getAddressOrName(user.ID) + // Skip blank contact info + if name == "" { + continue + } msg, err := app.email.constructUserExpired(app, false) if err != nil { app.err.Printf(lm.FailedConstructExpiryMessage, user.ID, err)