Add config options for owner and halfop.
This commit is contained in:
parent
bbc6973347
commit
46f0c51863
|
@ -327,6 +327,8 @@ exempt {
|
|||
|
||||
channel {
|
||||
autochanmodes = "nt";
|
||||
use_halfop = yes;
|
||||
use_owner = yes;
|
||||
use_invex = yes;
|
||||
use_except = yes;
|
||||
use_knock = yes;
|
||||
|
|
|
@ -678,6 +678,14 @@ channel {
|
|||
*/
|
||||
autochanmodes = "nt";
|
||||
|
||||
/* halfop: Enable/disable channel mode +h, which adds halfop,
|
||||
* a channel status below op that has op powers (kick, ban, mode, etc.)
|
||||
use_halfop = yes;
|
||||
|
||||
/* owner: Enable/disable channel mode +a, which adds owner,
|
||||
* a channel status above op that has op powers (kick, ban, mode, etc.)
|
||||
use_owner = yes;
|
||||
|
||||
/* invex: Enable/disable channel mode +I, a n!u@h list of masks
|
||||
* that can join a +i channel without an invite.
|
||||
*/
|
||||
|
|
|
@ -52,8 +52,12 @@ WITH PARAMETERS:
|
|||
PARAMS: /mode #channel +l limit
|
||||
+v - Voice. Allows a user to talk in a +m channel. Noted by +nick.
|
||||
PARAMS: /mode #channel +v nick
|
||||
+o - Op. Allows a user full control over the channel.
|
||||
+h - Halfop. Grants channel half-operator status.
|
||||
PARAMS: /mode #channel +h nick
|
||||
+o - Op. Grants channel operator status.
|
||||
PARAMS: /mode #channel +o nick
|
||||
+a - Owner. Grants channel owner status.
|
||||
PARAMS: /mode #channel +a nick
|
||||
+b - Ban. Prevents a user from entering the channel, and from
|
||||
sending or changing nick if they are on it, based on a
|
||||
nick!ident@host match.
|
||||
|
|
|
@ -222,6 +222,8 @@ struct config_file_entry
|
|||
struct config_channel_entry
|
||||
{
|
||||
char * autochanmodes;
|
||||
int use_halfop;
|
||||
int use_owner;
|
||||
int use_except;
|
||||
int use_invex;
|
||||
int use_knock;
|
||||
|
|
|
@ -572,6 +572,18 @@ static struct InfoStruct info_table[] = {
|
|||
&ConfigChannel.host_in_topic,
|
||||
"Defines whether a topicsetters host or just nick is shown on TOPIC",
|
||||
},
|
||||
{
|
||||
"use_halfop",
|
||||
OUTPUT_BOOLEAN_YN,
|
||||
&ConfigChannel.use_halfop,
|
||||
"Enable chanmode +h (halfop)",
|
||||
},
|
||||
{
|
||||
"use_owner",
|
||||
OUTPUT_BOOLEAN_YN,
|
||||
&ConfigChannel.use_owner,
|
||||
"Enable chanmode +a (owner)",
|
||||
},
|
||||
{
|
||||
"use_except",
|
||||
OUTPUT_BOOLEAN_YN,
|
||||
|
|
|
@ -2221,6 +2221,8 @@ static struct ConfEntry conf_channel_table[] =
|
|||
{ "only_ascii_channels", CF_YESNO, NULL, 0, &ConfigChannel.only_ascii_channels },
|
||||
{ "cycle_host_change", CF_YESNO, NULL, 0, &ConfigChannel.cycle_host_change },
|
||||
{ "host_in_topic", CF_YESNO, NULL, 0, &ConfigChannel.host_in_topic },
|
||||
{ "use_halfop", CF_YESNO, NULL, 0, &ConfigChannel.use_halfop },
|
||||
{ "use_owner", CF_YESNO, NULL, 0, &ConfigChannel.use_owner },
|
||||
{ "use_except", CF_YESNO, NULL, 0, &ConfigChannel.use_except },
|
||||
{ "use_invex", CF_YESNO, NULL, 0, &ConfigChannel.use_invex },
|
||||
{ "use_knock", CF_YESNO, NULL, 0, &ConfigChannel.use_knock },
|
||||
|
|
|
@ -747,6 +747,8 @@ set_default_conf(void)
|
|||
ConfigFileEntry.oper_snomask = SNO_GENERAL;
|
||||
|
||||
ConfigChannel.autochanmodes = rb_strdup("nt");
|
||||
ConfigChannel.use_halfop = YES;
|
||||
ConfigChannel.use_owner = YES;
|
||||
ConfigChannel.use_except = YES;
|
||||
ConfigChannel.use_invex = YES;
|
||||
ConfigChannel.use_knock = YES;
|
||||
|
|
Loading…
Reference in New Issue