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

* Possibly fixed bug in got_nu()

svn: 1084
Bryan Drewery 22 лет назад
Родитель
Сommit
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'
 31.Detected promisc now shows which interface.
 32.Now using daemon(3) to fork into background.
+33.Possibly fixed a bug with bots dying on link.
 
 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 */
   time_t newts;
 #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.. */
     return;