]> jfr.im git - solanum.git/blobdiff - modules/m_info.c
Create configurations for user-facing messages within registration (#238)
[solanum.git] / modules / m_info.c
index 6692951b92cc1540ddefba7d470eed82e359596a..f6d03659b40ee85b8a6d5e1c02972e5ee0f63d6e 100644 (file)
@@ -200,6 +200,51 @@ static struct InfoStruct info_table[] = {
                "Message to quit users with if this server is draining.",
                INFO_STRING(&ConfigFileEntry.drain_reason),
        },
+       {
+               "sasl_only_client_message",
+               "Message to quit users with if they require SASL authentication.",
+               INFO_STRING(&ConfigFileEntry.sasl_only_client_message),
+       },
+       {
+               "identd_only_client_message",
+               "Message to quit users with if they require Identd.",
+               INFO_STRING(&ConfigFileEntry.identd_only_client_message),
+       },
+       {
+               "sctp_forbidden_client_message",
+               "Message to quit users with if they attempt using SCTP.",
+               INFO_STRING(&ConfigFileEntry.sctp_forbidden_client_message),
+       },
+       {
+               "ssltls_only_client_message",
+               "Message to quit users with if they require SSL/TLS.",
+               INFO_STRING(&ConfigFileEntry.ssltls_only_client_message),
+       },
+       {
+               "not_authorised_client_message",
+               "Message to quit users with if they are not authorised.",
+               INFO_STRING(&ConfigFileEntry.not_authorised_client_message),
+       },
+       {
+               "illegal_hostname_client_message",
+               "Message to users when their hostname contains illegal characters.",
+               INFO_STRING(&ConfigFileEntry.illegal_hostname_client_message),
+       },
+       {
+               "server_full_client_message",
+               "Message to users when the server is full.",
+               INFO_STRING(&ConfigFileEntry.server_full_client_message),
+       },
+       {
+               "illegal_name_long_client_message",
+               "Long message to users when their username contains illegal characters.",
+               INFO_STRING(&ConfigFileEntry.illegal_name_long_client_message),
+       },
+       {
+               "illegal_name_short_client_message",
+               "Short message to users when their username contains illegal characters.",
+               INFO_STRING(&ConfigFileEntry.illegal_name_short_client_message),
+       },
        {
                "disable_auth",
                "Controls whether auth checking is disabled or not",
@@ -406,11 +451,6 @@ static struct InfoStruct info_table[] = {
                "STATS C output is only shown to operators",
                INFO_INTBOOL_YN(&ConfigFileEntry.stats_c_oper_only),
        },
-       {
-               "stats_h_oper_only",
-               "STATS H output is only shown to operators",
-               INFO_INTBOOL_YN(&ConfigFileEntry.stats_h_oper_only),
-       },
        {
                "stats_i_oper_only",
                "STATS I output is only shown to operators",
@@ -586,6 +626,11 @@ static struct InfoStruct info_table[] = {
                "Send messages to @#channel if affected by +z",
                INFO_INTBOOL_YN(&ConfigChannel.opmod_send_statusmsg),
        },
+       {
+               "ip_bans_through_vhost",
+               "Channel IP bans see through dynamic spoofs",
+               INFO_INTBOOL_YN(&ConfigChannel.ip_bans_through_vhost),
+       },
        {
                "hide_opers",
                "Hide all opers from unprivileged users",
@@ -616,6 +661,11 @@ static struct InfoStruct info_table[] = {
                "Links rehash delay",
                INFO_DECIMAL(&ConfigServerHide.links_delay),
        },
+       {
+               "oper_secure_only",
+               "Require TLS to become an oper",
+               INFO_INTBOOL_YN(&ConfigFileEntry.oper_secure_only),
+       },
 
        { NULL, NULL, 0, { NULL } },
 };