소스 검색

* Possibly fixed bug in got_nu()

svn: 1084
Bryan Drewery 22 년 전
부모
커밋
b72b663435
2개의 변경된 파일과 3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      doc/UPDATES
  2. 2 0
      src/mod/update.mod/update.c

+ 1 - 0
doc/UPDATES

@@ -34,6 +34,7 @@ This is a summary of ChangeLog basically.
 30.Rewrote nick generator on 'nick in use'
 30.Rewrote nick generator on 'nick in use'
 31.Detected promisc now shows which interface.
 31.Detected promisc now shows which interface.
 32.Now using daemon(3) to fork into background.
 32.Now using daemon(3) to fork into background.
+33.Possibly fixed a bug with bots dying on link.
 
 
 1.1.7
 1.1.7
 
 

+ 2 - 0
src/mod/update.mod/update.c

@@ -166,6 +166,8 @@ static void got_nu(char *botnick, char *code, char *par)
 /* needupdate? curver */
 /* needupdate? curver */
   time_t newts;
   time_t newts;
 #ifdef LEAF
 #ifdef LEAF
+  if (!conf.bot->u || !userlist || !get_user_by_handle(userlist, botnick))	/* probably still getting userfile */
+    return;
 
 
   if (tandbot && tandbot->bot && !strcmp(tandbot->bot, botnick)) /* dont listen to our uplink.. use normal upate system.. */
   if (tandbot && tandbot->bot && !strcmp(tandbot->bot, botnick)) /* dont listen to our uplink.. use normal upate system.. */
     return;
     return;