Explorar o código

No need to lookup the user here until TCL is readded.

Spotted by:	scan-build
Bryan Drewery %!s(int64=11) %!d(string=hai) anos
pai
achega
6b62e11f72
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/mod/server.mod/servmsg.cc

+ 2 - 0
src/mod/server.mod/servmsg.cc

@@ -595,7 +595,9 @@ static bool detect_flood(char *floodnick, char *floodhost, char *from, int which
     lastmsgs[which] = 0;
     lastmsgtime[which] = 0;
     lastmsghost[which][0] = 0;
+#ifdef TCL
     u = get_user_by_host(from);
+#endif
     /* Private msg */
     simple_snprintf(h, sizeof(h), "*!*@%s", p);
     putlog(LOG_MISC, "*", "Flood from @%s!  Placing on ignore!", p);