X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fbio%2Fserv_bio.c;fp=citadel%2Fmodules%2Fbio%2Fserv_bio.c;h=81a54b573914d230981ad2c063e5571ffff9f2b5;hp=ea88b87d36da0ed953fb7a4d8b9cbbc94bb1c1d3;hb=7c94d5bb68f1c448770d31205ec5ae12bd8a02ed;hpb=c8c89455faeb5a76d6ee2264f497b8f790e0e392 diff --git a/citadel/modules/bio/serv_bio.c b/citadel/modules/bio/serv_bio.c index ea88b87d3..81a54b573 100644 --- a/citadel/modules/bio/serv_bio.c +++ b/citadel/modules/bio/serv_bio.c @@ -2,7 +2,7 @@ * This module implementsserver commands related to the display and * manipulation of user "bio" files. * - * Copyright (c) 1987-2012 by the citadel.org team + * 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 as published by @@ -16,6 +16,7 @@ */ #include "ctdl_module.h" +#include "config.h" #include #include @@ -45,7 +46,7 @@ void cmd_ebio(char *cmdbuf) { } cprintf("%d \n",SEND_LISTING); while(client_getln(buf, sizeof buf) >= 0 && strcmp(buf,"000")) { - if (ftell(fp) < config.c_maxmsglen) { + if (ftell(fp) < CtdlGetConfigLong("c_maxmsglen")) { fprintf(fp,"%s\n",buf); } }