]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Fix typo bug in flood protection code.
authorChris Porter <redacted>
Fri, 19 Jun 2009 21:56:17 +0000 (22:56 +0100)
committerChris Porter <redacted>
Fri, 19 Jun 2009 21:56:17 +0000 (22:56 +0100)
js/irc/ircconnection.js

index 7de787d6ad0cf4bfe276bdd1652f7ea1a3094617..17f408acea83fa595342f58e89d058e3c2f44ada 100644 (file)
@@ -45,8 +45,9 @@ qwebirc.irc.IRCConnection = new Class({
       
       if(t - this.__floodLastRequest < this.options.floodInterval) {
         if(this.__floodLastFlood != 0 && (t - this.__floodLastFlood > this.options.floodReset)) {
-          this.floodCounter = 0;
+          this.__floodCounter = 0;
         }
+
         this.__floodLastFlood = t;
         if(this.__floodCounter++ >= this.options.floodMax) {
           if(!this.disconnected) {