X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/7f046503b8b8dcec51c1f7752e87ba0ba0af0631..bdada0eacc11f6cfbf3256556d86282a0124ab26:/onak-conf.c?ds=sidebyside diff --git a/onak-conf.c b/onak-conf.c index 1ed252c..81d7bdf 100644 --- a/onak-conf.c +++ b/onak-conf.c @@ -4,10 +4,10 @@ * Jonathan McDowell * * Copyright 2002 Project Purple - * - * $Id: onak-conf.c,v 1.8 2003/10/15 21:15:21 noodles Exp $ */ +#include "config.h" + #include #include #include @@ -114,6 +114,8 @@ void readconfig(const char *configfile) { lladd(config.syncsites, strdup(&curline[9])); } else if (!strncmp("logfile ", curline, 8)) { config.logfile = strdup(&curline[8]); + } else if (!strncmp("loglevel ", curline, 9)) { + setlogthreshold(atoi(&curline[9])); } else if (!strncmp("this_site ", curline, 10)) { config.thissite = strdup(&curline[10]); } else if (!strncmp("socket_name ", curline, 12) ||