Kaynağa Gözat

* Ported [2708] to 1.2.9 (user limit/floodless fix)

svn: 2709
Bryan Drewery 20 yıl önce
ebeveyn
işleme
2159efeb82
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 0
      doc/UPDATES
  2. 1 2
      src/mod/server.mod/servmsg.c

+ 1 - 0
doc/UPDATES

@@ -57,6 +57,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed bots not enforcing bans when exempts were removed. (fixes #193)
 * Fixed bots not enforcing bans when exempts were removed. (fixes #193)
 * Updated CREDITS/cmd_about
 * Updated CREDITS/cmd_about
 * Fixed some startup segfaults resulting from bugs in glibc.
 * Fixed some startup segfaults resulting from bugs in glibc.
+* Fixed bot going floodless when it wasn't granted it.
 
 
 1.2.8
 1.2.8
 * Fixed [bot]* cmds depending on case of botnicks.
 * Fixed [bot]* cmds depending on case of botnicks.

+ 1 - 2
src/mod/server.mod/servmsg.c

@@ -684,8 +684,7 @@ static int gotnotice(char *from, char *msg)
       /* Server notice? */
       /* Server notice? */
       if ((nick[0] == 0) || (uhost[0] == 0)) {
       if ((nick[0] == 0) || (uhost[0] == 0)) {
         if (!server_online && 
         if (!server_online && 
-           (!strcmp(msg, "*** You are exempt from flood limits.") || 
-            !strcmp(msg, "*** You are exempt from user limits. congrats.")))
+            !strcmp(msg, "*** You are exempt from user limits. congrats."))
           floodless = 1;
           floodless = 1;
 	/* Hidden `250' connection count message from server */
 	/* Hidden `250' connection count message from server */
 	if (strncmp(msg, "Highest connection count:", 25))
 	if (strncmp(msg, "Highest connection count:", 25))