Allow fakechannels with 0 users

This commit is contained in:
ManiacTwister 2018-11-26 20:11:37 +01:00
parent a4e5c2fa61
commit 6d01464fc5

View file

@ -1864,7 +1864,7 @@ conf_set_fakechannel_users_min(void *data)
return; return;
int users_min = *((int *)data); 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); conf_report_error("fakechannel::users_min value %d is bogus, ignoring", users_min);
return; return;
@ -1880,7 +1880,7 @@ conf_set_fakechannel_users_max(void *data)
return; return;
int users_max = *((int *)data); 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); conf_report_error("fakechannel::users_max value %d is bogus, ignoring", users_max);
return; return;