channel_target_change = yes;
disable_local_channels = no;
autochanmodes = "+nt";
+ displayed_usercount = 3;
};
serverhide {
* when a channel is created.
*/
autochanmodes = "+nt";
+
+ /* displayed_usercount: the minimum amount of users on a channel before it
+ * is displayed in LIST. this parameter can be overridden using ELIST parameters,
+ * such as LIST >0.
+ */
+ displayed_usercount = 3;
};
int channel_target_change;
int disable_local_channels;
unsigned int autochanmodes;
+ int displayed_usercount;
};
struct config_server_hide
params = rb_malloc(sizeof(struct ListClient));
/* XXX rather arbitrary -- jilles */
- params->users_min = 3;
+ params->users_min = ConfigChannel.displayed_usercount;
params->users_max = INT_MAX;
params->operspy = operspy;
params->created_min = params->topic_min =
{ "channel_target_change", CF_YESNO, NULL, 0, &ConfigChannel.channel_target_change },
{ "disable_local_channels", CF_YESNO, NULL, 0, &ConfigChannel.disable_local_channels },
{ "autochanmodes", CF_QSTRING, conf_set_channel_autochanmodes, 0, NULL },
+ { "displayed_usercount", CF_INT, NULL, 0, &ConfigChannel.displayed_usercount },
{ "\0", 0, NULL, 0, NULL }
};
ConfigChannel.resv_forcepart = YES;
ConfigChannel.channel_target_change = YES;
ConfigChannel.disable_local_channels = NO;
+ ConfigChannel.displayed_usercount = 3;
ConfigChannel.autochanmodes = MODE_TOPICLIMIT | MODE_NOPRIVMSGS;