From 63cb8ca24c0d4003343340bb8413b7f84de1a6a3 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 5 Sep 2011 18:44:43 -0400 Subject: Moved signal/thread/mode checking to use signal pipes --- src/mail.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mail.cpp') diff --git a/src/mail.cpp b/src/mail.cpp index edd892bd0..dcf9dea5e 100644 --- a/src/mail.cpp +++ b/src/mail.cpp @@ -51,7 +51,8 @@ bool Mail(User *u, NickCore *nc, BotInfo *service, const Anope::string &subject, else { u->lastmail = nc->lastmail = Anope::CurTime; - threadEngine.Start(new MailThread(nc->display, nc->email, subject, message)); + Thread *t = new MailThread(nc->display, nc->email, subject, message); + t->Start(); return true; } @@ -64,7 +65,8 @@ bool Mail(NickCore *nc, const Anope::string &subject, const Anope::string &messa return false; nc->lastmail = Anope::CurTime; - threadEngine.Start(new MailThread(nc->display, nc->email, subject, message)); + Thread *t = new MailThread(nc->display, nc->email, subject, message); + t->Start(); return true; } -- cgit