Просмотр исходного кода

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

Spotted by:	scan-build
Bryan Drewery 11 лет назад
Родитель
Сommit
6b62e11f72
1 измененных файлов с 2 добавлено и 0 удалено
  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);