]> jfr.im git - irc/atheme/atheme.git/commitdiff
print badmail reason in badmail hit log line
authorjesopo <redacted>
Sun, 15 May 2022 16:12:46 +0000 (16:12 +0000)
committerjesopo <redacted>
Sun, 15 May 2022 16:12:46 +0000 (16:12 +0000)
modules/nickserv/badmail.c

index f4c413b083ed6bb7130d9d52f72178ed44e3cddb..5e8584b1160032a2fd055fcd7d4388c8ebd015c0 100644 (file)
@@ -70,9 +70,10 @@ check_registration(struct hook_user_register_check *hdata)
                {
                        command_fail(hdata->si, fault_noprivs, _("Sorry, we do not accept registrations with email addresses from that domain. Use another address."));
                        hdata->approved = 1;
-                       slog(LG_INFO, "REGISTER:BADEMAIL: %s to \2%s\2 by \2%s\2",
+                       slog(LG_INFO, "REGISTER:BADEMAIL: %s to \2%s\2 by \2%s\2 (%s)",
                                        hdata->account, hdata->email,
-                                       hdata->si->su != NULL ? hdata->si->su->nick : get_source_name(hdata->si));
+                                       hdata->si->su != NULL ? hdata->si->su->nick : get_source_name(hdata->si),
+                                       l->reason);
                        return;
                }
        }