Răsfoiți Sursa

* Disable call to detect_offense (+f) as it's unfinished and causes segfaults. (fixes #429)

Bryan Drewery 17 ani în urmă
părinte
comite
d580759b77
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/irc.mod/chan.c

+ 1 - 0
doc/UPDATES

@@ -26,6 +26,7 @@
 * Fixed bot dying off when it can't create a temporary file. (fixes #412)
 * Fixed bot dying off when it can't create a temporary file. (fixes #412)
 * Show connection time in cmd_(net|bot)server now.
 * Show connection time in cmd_(net|bot)server now.
 * Fix a segfault in the settings handling code. (Could create very random looking segfaults)
 * Fix a segfault in the settings handling code. (Could create very random looking segfaults)
+* Disable bot +f as all it did was cause a segfault. The flood code is unfinished. (fixes #429)
 
 
 1.2.15 - http://wraith.botpack.net/milestone/1.2.15
 1.2.15 - http://wraith.botpack.net/milestone/1.2.15
 * Fix a possible segfault when binaries compiled wrong
 * Fix a possible segfault when binaries compiled wrong

+ 1 - 1
src/mod/irc.mod/chan.c

@@ -3095,7 +3095,7 @@ static int gotmsg(char *from, char *msg)
     int botmatch = 0;
     int botmatch = 0;
     char *my_msg = NULL, *my_ptr = NULL, *fword = NULL;
     char *my_msg = NULL, *my_ptr = NULL, *fword = NULL;
 
 
-    if (me_op(chan) && doflood(chan))
+    if (me_op(chan) && doflood(chan) && 0)
       detect_offense(m, chan, msg);
       detect_offense(m, chan, msg);
 
 
     /* Check even if we're ignoring the host. (modified by Eule 17.7.99) */
     /* Check even if we're ignoring the host. (modified by Eule 17.7.99) */