summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 18:26:21 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 18:26:21 +0300
commit58de724683af04b627fbe5fb435b8771c77cdf50 (patch)
treec7a58234d1b721ba291442c2827ee5278beaea69 /src/net/eathena/beinghandler.cpp
parentcd02cce9c9b344c67b05b9b70f944bbed600c62e (diff)
downloadplus-58de724683af04b627fbe5fb435b8771c77cdf50.tar.gz
plus-58de724683af04b627fbe5fb435b8771c77cdf50.tar.bz2
plus-58de724683af04b627fbe5fb435b8771c77cdf50.tar.xz
plus-58de724683af04b627fbe5fb435b8771c77cdf50.zip
Fix added MAIL2 packets limits by packet version and plugin version.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 31380aa0d..94e58457b 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -108,8 +108,11 @@ void BeingHandler::requestNameByCharId(const int id) const
void BeingHandler::requestCheckName(const std::string &name) const
{
- if (packetVersion < 20140423)
+ if (packetVersion < 20140423 ||
+ serverVersion < 19)
+ {
return;
+ }
createOutPacket(CMSG_CHECK_NAME);
outMsg.writeString(name, 24, "name");
}