Allow fakechannels with 0 users
This commit is contained in:
parent
a4e5c2fa61
commit
6d01464fc5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue