mirror of
https://github.com/anope/anope.git
synced 2026-07-05 04:33:12 +02:00
Rewrote some of the socket code to allow m_ssl to be a service.
This allows modules (xmlrpc) to create and accept SSL connections. Also fixed unloading m_mysql at certain times and made the threading engine always work correctly on Windows.
This commit is contained in:
@@ -13,7 +13,10 @@ void MailThread::Run()
|
||||
FILE *pipe = popen(Config->SendMailPath.c_str(), "w");
|
||||
|
||||
if (!pipe)
|
||||
{
|
||||
SetExitState();
|
||||
return;
|
||||
}
|
||||
|
||||
fprintf(pipe, "From: %s\n", Config->SendFrom.c_str());
|
||||
if (Config->DontQuoteAddresses)
|
||||
@@ -27,6 +30,7 @@ void MailThread::Run()
|
||||
pclose(pipe);
|
||||
|
||||
Success = true;
|
||||
SetExitState();
|
||||
}
|
||||
|
||||
bool Mail(User *u, NickRequest *nr, BotInfo *service, const Anope::string &subject, const Anope::string &message)
|
||||
|
||||
Reference in New Issue
Block a user