summaryrefslogtreecommitdiff
path: root/src/mail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail.cpp')
-rw-r--r--src/mail.cpp6
1 files changed, 4 insertions, 2 deletions
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;
}