Browse Source

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

Spotted by:	scan-build
Bryan Drewery 11 years ago
parent
commit
6b62e11f72
1 changed files with 2 additions and 0 deletions
  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);