فهرست منبع

* Initialize 'userfile' in chanprog() before reading it with $binpath/.u

svn: 1791
Bryan Drewery 21 سال پیش
والد
کامیت
004c3a7121
2فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 0
      src/chanprog.c
  2. 0 4
      src/main.c

+ 1 - 0
src/chanprog.c

@@ -539,6 +539,7 @@ void chanprog()
   sdprintf("ip6: %s", myipstr(6));
   sdprintf("I am: %s", conf.bot->nick);
 #ifdef HUB
+  egg_snprintf(userfile, 121, "%s/.u", conf.binpath);
   loading = 1;
   checkchans(0);
   readuserfile(userfile, &userlist);

+ 0 - 4
src/main.c

@@ -735,10 +735,6 @@ printf("out: %s\n", out);
   lastmin = nowtm.tm_min;
   myuid = geteuid();
 
-#ifdef HUB
-  egg_snprintf(userfile, 121, "%s/.u", confdir());
-#endif /* HUB */
-
 #ifdef HUB
   egg_snprintf(tempdir, sizeof tempdir, "%s/tmp/", confdir());
 #endif /* HUB */