From 6d01464fc53cb37320f27882fe72ddcc381e4cdc Mon Sep 17 00:00:00 2001 From: ManiacTwister Date: Mon, 26 Nov 2018 20:11:37 +0100 Subject: [PATCH] Allow fakechannels with 0 users --- src/newconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newconf.c b/src/newconf.c index 4ae28d65..c048bcbd 100644 --- a/src/newconf.c +++ b/src/newconf.c @@ -1864,7 +1864,7 @@ conf_set_fakechannel_users_min(void *data) return; int users_min = *((int *)data); - if(users_min <= 0) + if(users_min < 0) { conf_report_error("fakechannel::users_min value %d is bogus, ignoring", users_min); return; @@ -1880,7 +1880,7 @@ conf_set_fakechannel_users_max(void *data) return; int users_max = *((int *)data); - if(users_max <= 0) + if(users_max < 0) { conf_report_error("fakechannel::users_max value %d is bogus, ignoring", users_max); return;