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

* Default binpath is now the directory the binary is in when doing -C.

svn: 1805
Bryan Drewery 21 лет назад
Родитель
Сommit
fcf0eda749
2 измененных файлов с 1 добавлено и 5 удалено
  1. 1 0
      doc/UPDATES
  2. 0 5
      src/conf.c

+ 1 - 0
doc/UPDATES

@@ -21,6 +21,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed.
 * cmd_botconfig now supports wildcards for the bot parameter
 * Eliminated a duplicate struct (conffile)
 * Removed chanset cookie-time-slack
+* Default binpath is now the directory the binary is in when doing -C.
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 0 - 5
src/conf.c

@@ -281,12 +281,7 @@ init_conf()
 #ifdef CYGWIN_HACKS
   conf.binpath = strdup(homedir());
 #else /* !CYGWIN_HACKS */
-#  ifdef LEAF
-  conf.binpath = strdup(STR("~/"));
-#  endif /* LEAF */
-#  ifdef HUB
   conf.binpath = strdup(dirname(binname));
-#  endif /* HUB */
 #endif /* CYGWIN_HACKS */
 //#ifdef LEAF
 //  conf.binname = strdup(STR(".sshrc"));