1
0
Эх сурвалжийг харах

* Ignore msg which triggers the +g

svn: 2181
Bryan Drewery 21 жил өмнө
parent
commit
1bfa3a1088

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

@@ -386,6 +386,7 @@ static bool detect_flood(char *floodnick, char *floodhost, char *from, int which
     howlong.usec = 0;
     timer_create(&howlong, "Unset umode +g", (Function) unset_g);
     putlog(LOG_MISC, "*", "Drone flood detected! Setting +g for %li seconds.", flood_g_time);
+    return 1;	//ignore the current msg
   }
 
   p = strchr(floodhost, '@');