X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fctdlproto%2Fserv_file.c;h=15e43b46d1c0659b4c70b919fd7d8888c49d3189;hp=50661c7c75d64187e97edcdbef00a4d88fcc4bce;hb=4db4fc48793f3680c5defd28ea32c97044a2b569;hpb=15054b0f11409cfc68102560fe4ab5a4e2bf4ea0 diff --git a/citadel/modules/ctdlproto/serv_file.c b/citadel/modules/ctdlproto/serv_file.c index 50661c7c7..15e43b46d 100644 --- a/citadel/modules/ctdlproto/serv_file.c +++ b/citadel/modules/ctdlproto/serv_file.c @@ -1,15 +1,5 @@ /* * Server functions which handle file transfers and room directories. - * - * Copyright (c) 1987-2015 by the citadel.org team - * - * This program is open source software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. */ #include @@ -19,10 +9,8 @@ #include "ctdl_module.h" #include "citserver.h" #include "support.h" -#include "config.h" #include "user_ops.h" - /* * Server command to delete a file from a room's directory */ @@ -799,15 +787,16 @@ void do_help_subst(char *buffer) { char buf2[16]; - help_subst(buffer, "^nodename", CtdlGetConfigStr("c_nodename")); - help_subst(buffer, "^humannode", CtdlGetConfigStr("c_humannode")); - help_subst(buffer, "^fqdn", CtdlGetConfigStr("c_fqdn")); + help_subst(buffer, "^nodename", config.c_nodename); + help_subst(buffer, "^humannode", config.c_humannode); + help_subst(buffer, "^fqdn", config.c_fqdn); help_subst(buffer, "^username", CC->user.fullname); snprintf(buf2, sizeof buf2, "%ld", CC->user.usernum); help_subst(buffer, "^usernum", buf2); - help_subst(buffer, "^sysadm", CtdlGetConfigStr("c_sysadm")); + help_subst(buffer, "^sysadm", config.c_sysadm); help_subst(buffer, "^variantname", CITADEL); - help_subst(buffer, "^maxsessions", CtdlGetConfigStr("c_maxsessions")); // yes it's numeric but str is ok here + snprintf(buf2, sizeof buf2, "%d", config.c_maxsessions); + help_subst(buffer, "^maxsessions", buf2); help_subst(buffer, "^bbsdir", ctdl_message_dir); }