- return '' unless &IsChanConf('minVolunteerLength') > 0;
- return '' if ( length $query < &::getChanConf('minVolunteerLength') );
+ return ''
+ if (
+ length $query <
+ &::getChanConfDefault( 'minVolunteerLength', 2, $chan ) or
+ $param{'addressing'} =~ m/require/i );
+ return ''
+ if (
+ length $query >
+ &::getChanConfDefault( 'maxVolunteerLength', 512, $chan ) or
+ $param{'addressing'} =~ m/require/i );