summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-31 00:42:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-31 00:42:35 +0300
commitf28b8c5f50ea6aa3d9b7754dafa9bb56a7b791a9 (patch)
tree40c95d8508a1cca9327d9d91c19e03261f7aca58 /src/client.cpp
parent8cc6679b676103c7c6696947ea43ad439e9754c5 (diff)
downloadManaVerse-f28b8c5f50ea6aa3d9b7754dafa9bb56a7b791a9.tar.gz
ManaVerse-f28b8c5f50ea6aa3d9b7754dafa9bb56a7b791a9.tar.bz2
ManaVerse-f28b8c5f50ea6aa3d9b7754dafa9bb56a7b791a9.tar.xz
ManaVerse-f28b8c5f50ea6aa3d9b7754dafa9bb56a7b791a9.zip
Fix guildbot messages delay.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index cfff614ef..e264235d5 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -2233,6 +2233,12 @@ void Client::initPacketLimiter()
mPacketLimits[PACKET_ONLINELIST].cntLimit = 1;
mPacketLimits[PACKET_ONLINELIST].cnt = 0;
+ // 300ms + 50 fix
+ mPacketLimits[PACKET_WHISPER].timeLimit = 30 + 5;
+ mPacketLimits[PACKET_WHISPER].lastTime = 0;
+ mPacketLimits[PACKET_WHISPER].cntLimit = 1;
+ mPacketLimits[PACKET_WHISPER].cnt = 0;
+
if (!mServerConfigDir.empty())
{
std::string packetLimitsName =
@@ -2269,7 +2275,7 @@ void Client::initPacketLimiter()
mPacketLimits[f].timeLimit = atoi(line);
}
inPacketFile.close();
- if (ver < 4)
+ if (ver < 5)
writePacketLimits(packetLimitsName);
}
}