diff options
author | Adam <Adam@anope.org> | 2012-10-29 13:51:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-29 13:51:38 -0400 |
commit | bb5e4127d7930eb5877ff4984e6b52715987fc24 (patch) | |
tree | 8e1e3ffe6eca66057fc2164f90420abfaa08dbed /include/mail.h | |
parent | 30028a24048ddc521bc6b8a09192bfb00fe025b5 (diff) |
Made MailThread completely threadsafe, currently theres a race condition with config reload + sending mail at once
Diffstat (limited to 'include/mail.h')
-rw-r--r-- | include/mail.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mail.h b/include/mail.h index baef45589..493002637 100644 --- a/include/mail.h +++ b/include/mail.h @@ -25,6 +25,8 @@ extern CoreExport bool MailValidate(const Anope::string &email); class MailThread : public Thread { private: + Anope::string SendMailPath; + Anope::string SendFrom; Anope::string MailTo; Anope::string Addr; Anope::string Subject; @@ -33,7 +35,7 @@ class MailThread : public Thread bool Success; public: - MailThread(const Anope::string &mailto, const Anope::string &addr, const Anope::string &subject, const Anope::string &message); + MailThread(const Anope::string &smpath, const Anope::string &sf, const Anope::string &mailto, const Anope::string &addr, const Anope::string &subject, const Anope::string &message); ~MailThread(); |