From 3446399e3264d7f417391a145ca5367a00f90b55 Mon Sep 17 00:00:00 2001 From: psxc Date: Sun, 8 May 2005 17:48:12 +0000 Subject: [PATCH] v1.0final --- BUGS | 2 +- CHANGELOG | 6 +++--- FAQ | 2 ++ README.ZSCONFIG | 2 +- zipscript/conf/zsconfig.h.dist | 20 ++++++++------------ zipscript/include/zsconfig.defaults.h | 2 +- zipscript/src/helpfunctions.c | 2 +- zipscript/src/ng-version.c | 2 +- 8 files changed, 18 insertions(+), 20 deletions(-) diff --git a/BUGS b/BUGS index 75508cce..cf36fbb1 100644 --- a/BUGS +++ b/BUGS @@ -1,3 +1,3 @@ -TODO is now deprecated. use http://bugs.relay.dk/. +TODO is now deprecated. use http://bugs.pzs-ng.com/. (You can report bugs and classify them as features to add feature-requests) Thank you. :-) diff --git a/CHANGELOG b/CHANGELOG index 44f8380e..b38463f1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -9,10 +9,10 @@ v0.6.1 --> 1.00 : The changes from the original project-zs by d1 is changed a lot and have been given a few new options, so check the sitebot.conf and the README. - In total, there has been nearly 1700 code updates, so + In total, there has been over 1800 code updates, so i won't list all of those here. I'll just list what - changes are major ones. The new config options can be - read about in README.ZSCONFIG + changes are major ones. The new config options listed + below can be read about in README.ZSCONFIG. ---- Changes in the zipscript: diff --git a/FAQ b/FAQ index 0d584568..e42c9467 100644 --- a/FAQ +++ b/FAQ @@ -58,6 +58,8 @@ A: You should disable the announce in glftpd.conf. Change your dirlog lines The / at the end hinders announces/logging of new dirs after it, ie dirs created in /site/BOOKWARE/some_release/* is not announced. For more info see glftpd.docs. +A: Check the docs on the sitebot. There is a denypost directive, and you have + options to redirect output to a different channel. Q: (BOT) I get errors on !bw !speed etc in the bot. What to do? --------------------------------------------------------------- diff --git a/README.ZSCONFIG b/README.ZSCONFIG index ba8b1c70..a6eb225a 100644 --- a/README.ZSCONFIG +++ b/README.ZSCONFIG @@ -310,7 +310,7 @@ debug_mode If something seems weird/doesn't work, you should debug. Setting this variable to TRUE will turn on debugging. A file named .debug will be created, normally in the same dir as the upload-dir. - Default: TRUE + Default: FALSE debug_altlog If debug is on, you can choose wether you wish to have the .debug file diff --git a/zipscript/conf/zsconfig.h.dist b/zipscript/conf/zsconfig.h.dist index 871f3da4..4ef2717e 100644 --- a/zipscript/conf/zsconfig.h.dist +++ b/zipscript/conf/zsconfig.h.dist @@ -1,15 +1,15 @@ /* zsconfig.h - ZipScript-C config file * - * This file only contains overrides of the defaults. - * Please see README.ZSCONFIG for a complete list - * of all settings. + * This file only contains overrides of the defaults. If you need to edit/change + * other options, please copy the option from README.ZSCONFIG and place it in + * here. + * The complete list of options availible is found in README.ZSCONFIG. * * Please do not change settings you do not understand! * */ - /* DO NOT USE WILDCARDS HERE - only cleanupdirs use wildcards! */ #define sitepath_dir "/site/" #define group_dirs "/site/groups/" @@ -20,22 +20,20 @@ #define audio_nocheck_dirs "/site/groups/ /site/incoming/requests/" #define allowed_types_exemption_dirs "/site/incoming/musicvideos/" #define check_for_missing_nfo_dirs "/site/incoming/games/ /site/incoming/apps/" - #define cleanupdirs "/site/test/ /site/incoming/games/ /site/incoming/apps/ /site/incoming/musicvideos/" #define cleanupdirs_dated "/site/incoming/0day/%m%d/ /site/incoming/mp3/%m%d/" #define short_sitename "NG" -#define status_bar_type 1 +#define debug_mode FALSE +#define debug_altlog TRUE +#define status_bar_type 1 #define incompleteislink 1 #define allowed_types "jpg,cue,m3u,mpg,mpeg,avi,txt,mov,vob" - #define ignored_types ",diz,debug,message,imdb" -#define remove_dot_files_on_delete FALSE - #define deny_double_sfv FALSE #define force_sfv_first FALSE @@ -44,7 +42,7 @@ #define audio_year_path "/site/incoming/music.by.year/" #define audio_group_path "/site/incoming/music.by.group/" #define allowed_constant_bitrates "160,192" -#define allowed_years "2003,2004,2005" +#define allowed_years "2003,2004,2005,2006" #define banned_genres "Christian Rap,Christian Rock,Christian Gangsta Rap,Contemporary Christian" #define allowed_genres "Rock,Ethnic,Indie,Instrumental Rock,Soundtrack" #define audio_genre_sort FALSE @@ -59,8 +57,6 @@ #define audio_allowed_genre_check FALSE #define audio_genre_warn TRUE -#define announce_norace TRUE - #define enable_nfo_script FALSE #define nfo_script "/bin/psxc-imdb.sh" #define enable_complete_script FALSE diff --git a/zipscript/include/zsconfig.defaults.h b/zipscript/include/zsconfig.defaults.h index 4d90b28c..eefb44c3 100644 --- a/zipscript/include/zsconfig.defaults.h +++ b/zipscript/include/zsconfig.defaults.h @@ -305,7 +305,7 @@ * rescan (to be used with *allowed/approved* type files). */ #ifndef debug_mode -#define debug_mode TRUE +#define debug_mode FALSE #endif #ifndef debug_altlog #define debug_altlog TRUE diff --git a/zipscript/src/helpfunctions.c b/zipscript/src/helpfunctions.c index 43d648ab..a8ce2c41 100644 --- a/zipscript/src/helpfunctions.c +++ b/zipscript/src/helpfunctions.c @@ -44,7 +44,7 @@ find_last_of(char *name, const char *delim) void strip_whitespaces(char *s) { - if (s) + if (s && *s) while (s[(int)strlen(s)-1] == ' ' || s[(int)strlen(s)-1] == '\t' || s[(int)strlen(s)-1] == '\n' || diff --git a/zipscript/src/ng-version.c b/zipscript/src/ng-version.c index f1c224cc..d9ff03f9 100644 --- a/zipscript/src/ng-version.c +++ b/zipscript/src/ng-version.c @@ -1,3 +1,3 @@ #include "ng-version.h" -const char* ng_version(void) { const char* NG_Version = "1.0RC4(pre) (r1723)"; return NG_Version; } +const char* ng_version(void) { const char* NG_Version = "1.0.0.1811"; return NG_Version; }