1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 18:16:38 +02:00

Fix erroring out when sendmailpath is empty.

This has a default now.
This commit is contained in:
Sadie Powell
2024-04-02 16:50:52 +01:00
parent c08aaa86d1
commit 8b4cd65e2a
+1 -1
View File
@@ -190,7 +190,7 @@ Conf::Conf() : Block("")
if (mail->Get<bool>("usemail"))
{
Anope::string check[] = { "sendmailpath", "sendfrom", "registration_subject", "registration_message", "emailchange_subject", "emailchange_message", "memo_subject", "memo_message" };
Anope::string check[] = { "sendfrom", "registration_subject", "registration_message", "emailchange_subject", "emailchange_message", "memo_subject", "memo_message" };
for (const auto &field : check)
ValidateNotEmpty("mail", field, mail->Get<const Anope::string>(field));
}