|
@@ -258,14 +258,17 @@ void Client::parsePrintedLine()
|
|
|
}
|
|
|
else if(command == "spam")
|
|
|
{
|
|
|
- int spamFloodProtTime = Settings::globalInstance()->spamFloodProtTime();
|
|
|
- if(mySpamBroadcastFloodTimer->isActive())
|
|
|
- {
|
|
|
- say("FloodProt: Wait " + QString::number(spamFloodProtTime + currentTime.secsTo(mySpamBroadcastFloodTimerStart)) + " secs before new .spam", bestPlayer.name);
|
|
|
- return;
|
|
|
- }
|
|
|
- mySpamBroadcastFloodTimerStart = currentTime;
|
|
|
- mySpamBroadcastFloodTimer->start(spamFloodProtTime*1000);
|
|
|
+ say("Only .qw is allowed within QW servers. Please use .qw to broadcast your message.");
|
|
|
+ return;
|
|
|
+
|
|
|
+// int spamFloodProtTime = Settings::globalInstance()->spamFloodProtTime();
|
|
|
+// if(mySpamBroadcastFloodTimer->isActive())
|
|
|
+// {
|
|
|
+// say("FloodProt: Wait " + QString::number(spamFloodProtTime + currentTime.secsTo(mySpamBroadcastFloodTimerStart)) + " secs before new .spam", bestPlayer.name);
|
|
|
+// return;
|
|
|
+// }
|
|
|
+// mySpamBroadcastFloodTimerStart = currentTime;
|
|
|
+// mySpamBroadcastFloodTimer->start(spamFloodProtTime*1000);
|
|
|
}
|
|
|
|
|
|
// Prepare all strings to be broadcasted
|