summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 22:28:48 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 22:28:48 +0300
commit59dc7219d3b8491fdd139183cf09742787e407db (patch)
tree53bb59b4e77739faaafe5054413bfc8d542597f7 /src
parent499d2fd952251bc1cb2156cecd965d0c07c9a98f (diff)
downloadmanaplus-59dc7219d3b8491fdd139183cf09742787e407db.tar.gz
manaplus-59dc7219d3b8491fdd139183cf09742787e407db.tar.bz2
manaplus-59dc7219d3b8491fdd139183cf09742787e407db.tar.xz
manaplus-59dc7219d3b8491fdd139183cf09742787e407db.zip
Allow send mail2 packets to plain hercules.
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/mail2handler.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp
index 8d1df482b..a4a35b4c2 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -51,7 +51,7 @@ Mail2Handler::~Mail2Handler()
void Mail2Handler::openWriteMail(const std::string &receiver) const
{
if (packetVersion < 20140416 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -65,7 +65,7 @@ void Mail2Handler::addItem(const Item *const item,
if (item == nullptr)
return;
if (packetVersion < 20140416 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -82,7 +82,7 @@ void Mail2Handler::removeItem(const Item *const item,
if (item == nullptr)
return;
if (packetVersion < 20140416 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -99,7 +99,7 @@ void Mail2Handler::sendMail(const std::string &to,
const int64_t &money) const
{
if (packetVersion < 20131230 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -130,7 +130,7 @@ void Mail2Handler::nextPage(const int openType,
const int64_t mailId) const
{
if (packetVersion < 20131218 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -143,7 +143,7 @@ void Mail2Handler::readMail(const int openType,
const int64_t mailId) const
{
if (packetVersion < 20131223 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -156,7 +156,7 @@ void Mail2Handler::deleteMail(const int openType,
const int64_t mailId) const
{
if (packetVersion < 20131218 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -169,7 +169,7 @@ void Mail2Handler::requestMoney(const int openType,
const int64_t mailId) const
{
if (packetVersion < 20140326 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -182,7 +182,7 @@ void Mail2Handler::requestItems(const int openType,
const int64_t mailId) const
{
if (packetVersion < 20140326 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -195,7 +195,7 @@ void Mail2Handler::refreshMailList(const int openType,
const int64_t mailId) const
{
if (packetVersion < 20131218 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -207,7 +207,7 @@ void Mail2Handler::refreshMailList(const int openType,
void Mail2Handler::openMailBox(const int openType) const
{
if (packetVersion < 20140212 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -219,7 +219,7 @@ void Mail2Handler::openMailBox(const int openType) const
void Mail2Handler::closeMailBox() const
{
if (packetVersion < 20131211 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}
@@ -229,7 +229,7 @@ void Mail2Handler::closeMailBox() const
void Mail2Handler::cancelWriteMail() const
{
if (packetVersion < 20140326 ||
- serverVersion < 19)
+ (serverVersion < 19 && serverVersion != 0))
{
return;
}