From 24a656d337d28ac3784e1e9abe0f21187f240764 Mon Sep 17 00:00:00 2001 From: todd Date: Wed, 21 Jan 2009 15:04:38 +0000 Subject: borderwidth as a cwmrc(5) keyword, really helps debugging from okan@ ok oga@ --- conf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index d55677d..7726412 100644 --- a/conf.c +++ b/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: conf.c,v 1.52 2009/01/16 15:24:14 okan Exp $ + * $Id: conf.c,v 1.53 2009/01/21 15:04:38 todd Exp $ */ #include "headers.h" @@ -76,6 +76,7 @@ void conf_init(struct conf *c) { c->flags = 0; + c->bwidth = CONF_BWIDTH; TAILQ_INIT(&c->ignoreq); TAILQ_INIT(&c->cmdq); @@ -201,7 +202,7 @@ conf_client(struct client_ctx *cc) } else ignore = 1; - cc->bwidth = ignore ? 0 : CLIENT_BWIDTH; + cc->bwidth = ignore ? 0 : Conf.bwidth; cc->flags |= ignore ? CLIENT_IGNORE : 0; } -- cgit v1.2.3-2-gb3c3