diff options
Diffstat (limited to 'include/mail.h')
-rw-r--r-- | include/mail.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/mail.h b/include/mail.h index 347f3bc5b..0a25da3bf 100644 --- a/include/mail.h +++ b/include/mail.h @@ -9,8 +9,7 @@ * Based on the original code of Services by Andy Church. */ -#ifndef MAIL_H -#define MAIL_H +#pragma once #include "anope.h" #include "threadengine.h" @@ -23,9 +22,10 @@ namespace Mail extern CoreExport bool Validate(const Anope::string &email); /* A email message being sent */ - class Message : public Thread + class Message final + : public Thread { - private: + private: Anope::string error; Anope::string sendmail_path; Anope::string send_from; @@ -36,7 +36,7 @@ namespace Mail Anope::string content_type; bool dont_quote_addresses; - public: + public: /** Construct this message. Once constructed call Thread::Start to launch the mail sending. * @param sf Config->SendFrom * @param mailto Name of person being mailed (u->nick, nc->display, etc) @@ -49,9 +49,7 @@ namespace Mail ~Message(); /* Called from within the thread to actually send the mail */ - void Run() anope_override; + void Run() override; }; } // namespace Mail - -#endif // MAIL_H |