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
6adee5f63c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/mod/irc.mod/chan.cc

+ 2 - 0
src/mod/irc.mod/chan.cc

@@ -3152,7 +3152,9 @@ static int gotquit(char *from, char *msg)
   struct userrec *u = NULL;
 
   strlcpy(from2, from, sizeof(from2));
+#ifdef TCL
   u = get_user_by_host(from2);
+#endif
   nick = splitnick(&from);
   fixcolon(msg);
   /* Fred1: Instead of expensive wild_match on signoff, quicker method.