소스 검색

* Replace homedir with ~ when displaying conf settings

svn: 2000
Bryan Drewery 21 년 전
부모
커밋
102209f45a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/conf.c

+ 2 - 2
src/conf.c

@@ -39,11 +39,11 @@ tellconf()
   conf_bot *bot = NULL;
   int i = 0;
 
-  sdprintf("tempdir: %s\n", tempdir);
+  sdprintf("tempdir: %s\n", replace(tempdir, conf.homedir, "~"));
   sdprintf("uid: %d\n", conf.uid);
   sdprintf("uname: %s\n", conf.uname);
   sdprintf("homedir: %s\n", conf.homedir);
-  sdprintf("binpath: %s\n", conf.binpath);
+  sdprintf("binpath: %s\n", replace(conf.binpath, conf.homedir, "~"));
   sdprintf("binname: %s\n", conf.binname);
   sdprintf("portmin: %d\n", conf.portmin);
   sdprintf("portmax: %d\n", conf.portmax);