瀏覽代碼

* 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'
 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;