[openbnc-cvs] openbnc/src openbnc.c,1.3,1.4 p_version.h,1.4,1.5
Status: Beta
Brought to you by:
andrereis
From: Mateusz K. <sh...@us...> - 2004-07-05 19:13:36
|
Update of /cvsroot/openbnc/openbnc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15955/openbnc/src Modified Files: openbnc.c p_version.h Log Message: - Fixed problem with SSL - New banner - Fixes in english.lng ( banner ) Index: p_version.h =================================================================== RCS file: /cvsroot/openbnc/openbnc/src/p_version.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- p_version.h 9 Jun 2004 08:53:50 -0000 1.4 +++ p_version.h 5 Jul 2004 19:13:24 -0000 1.5 @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define APPNAME "openBNC" +#define APPNAME "OpenBNC" #define APPVER "1.0" #ifdef P_MAIN Index: openbnc.c =================================================================== RCS file: /cvsroot/openbnc/openbnc/src/openbnc.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- openbnc.c 4 Jun 2004 15:31:01 -0000 1.3 +++ openbnc.c 5 Jul 2004 19:13:24 -0000 1.4 @@ -168,7 +168,7 @@ int printbanner(void) { - int i; +/* int i; for(i=979;i<990;i++) { fprintf(stdout,"%s",lngtxt(i)); @@ -178,6 +178,12 @@ if(getuid()==0) fprintf(stdout,lngtxt(990)); fflush(stdout); + */ + + printf("OpenIRC Advenced IRC Bouncer\n"); + printf("Copyright (C) 2004 The OpenBNC Development Team\n"); + printf("Based on psyBNC, by 'the most psychoid'.\n"); + return 0x0; } @@ -221,9 +227,11 @@ exit(0x0); } printbanner(); - printf(lngtxt(991),configfile); - printf(lngtxt(992),langname); - ap_snprintf(logfile,sizeof(logfile),lngtxt(993)); + // printf(lngtxt(991),configfile); + printf("> Reading config file : %s\n",configfile); + // printf(lngtxt(992),langname); + // ap_snprintf(logfile,sizeof(logfile),lngtxt(993)); + printf("> Logging set to : %s",logfile); rc = getini(lngtxt(994),lngtxt(995),INIFILE); if (rc != 0) { printf(lngtxt(996)); @@ -240,8 +248,8 @@ ap_snprintf(me,sizeof(me),"%s",value); rc = getini(lngtxt(998),lngtxt(999),INIFILE); if (rc < 0) { - printf(lngtxt(1000)); - ap_snprintf(value,sizeof(value),lngtxt(1001)); + printf("%s \n",lngtxt(1001)); + // ap_snprintf(value,sizeof(value),lngtxt(1001)); } ap_snprintf(logfile,sizeof(logfile),"%s",value); oldfile(logfile); @@ -309,8 +317,8 @@ } pcontext; if (pid) { - bversion=buildversion(); - printf(lngtxt(1007),bversion,pid); + // bversion=buildversion(); + printf("%s v%s is running (PID=%i)\n",APPNAME,APPVER,pid); log(LOG_INFO,-1,lngtxt(1008),bversion,pid); fprintf( pidfile,"%d\n",pid); fclose(pidfile); |