summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2recv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-23 20:34:31 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-23 20:55:58 +0300
commit79864826790a33a3583819fe02893eed010381d9 (patch)
tree33b90cf3613900c9de45715e5fea69a721d26f10 /src/net/eathena/mail2recv.cpp
parent4da8a6304b5b7bb4d2b655ed3471c0ff4a7d610a (diff)
downloadmanaplus-79864826790a33a3583819fe02893eed010381d9.tar.gz
manaplus-79864826790a33a3583819fe02893eed010381d9.tar.bz2
manaplus-79864826790a33a3583819fe02893eed010381d9.tar.xz
manaplus-79864826790a33a3583819fe02893eed010381d9.zip
Add mailqueuetype enum for mail queue types.
Diffstat (limited to 'src/net/eathena/mail2recv.cpp')
-rw-r--r--src/net/eathena/mail2recv.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/net/eathena/mail2recv.cpp b/src/net/eathena/mail2recv.cpp
index 1af7d47e2..04f7751a3 100644
--- a/src/net/eathena/mail2recv.cpp
+++ b/src/net/eathena/mail2recv.cpp
@@ -116,16 +116,20 @@ void Mail2Recv::processCheckNameResult(Net::MessageIn &msg)
delete mail;
return;
}
- if (mail->sendMail)
+ switch (mail->type)
{
- mail2Handler->sendMail(mail->to,
- mail->title,
- mail->body,
- mail->money);
- }
- else
- {
- reportAlways("Not implemented yet.");
+ case MailQueueType::SendMail:
+ mail2Handler->sendMail(mail->to,
+ mail->title,
+ mail->body,
+ mail->money);
+ break;
+ case MailQueueType::Unknown:
+ case MailQueueType::EditMail:
+ case MailQueueType::ValidateTO:
+ default:
+ reportAlways("Not implemented yet.");
+ break;
}
delete mail;
}