Sfoglia il codice sorgente

Removed .spam broadcast from within QW servers, only .qw is allowed.

Mihawk 10 anni fa
parent
commit
d7d57ae042
1 ha cambiato i file con 11 aggiunte e 8 eliminazioni
  1. 11 8
      Client.cpp

+ 11 - 8
Client.cpp

@@ -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