1
0
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:
Adam
2010-10-01 21:01:49 -04:00
parent 70056dd468
commit d44f7971b1
25 changed files with 756 additions and 383 deletions
+4
View File
@@ -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)