[svn] Remove invite_ops_only, forcing it to YES.

This commit is contained in:
jilles 2007-03-13 09:09:28 -07:00
parent 0734f634d9
commit 307328bb13
10 changed files with 32 additions and 42 deletions

View File

@ -1,3 +1,14 @@
jilles 2007/03/06 14:07:11 UTC (20070306-3255)
Log:
Move username check after xline and dnsbl checks, so it
will not complain to opers about clients who are xlined
or blacklisted anyway (both of which silently reject).
Changes: Modified:
+15 -15 trunk/src/s_user.c (File Modified)
nenolod 2007/03/05 19:01:05 UTC (20070305-3253)
Log:
- MASTER_MAX is no longer relevant

View File

@ -4,7 +4,7 @@
* Copyright (C) 2002-2005 ircd-ratbox development team
* Copyright (C) 2005-2006 charybdis development team
*
* $Id: example.conf 3251 2007-03-05 18:58:38Z nenolod $
* $Id: example.conf 3257 2007-03-13 16:09:28Z jilles $
*
* See reference.conf for more information.
*/
@ -268,7 +268,6 @@ channel {
use_except = yes;
use_knock = yes;
use_forward = yes;
invite_ops_only = yes;
knock_delay = 5 minutes;
knock_delay_channel = 1 minute;
max_chans_per_user = 15;

View File

@ -6,7 +6,7 @@
*
* Written by ejb, wcampbel, db, leeh and others
*
* $Id: reference.conf 3251 2007-03-05 18:58:38Z nenolod $
* $Id: reference.conf 3257 2007-03-13 16:09:28Z jilles $
*/
/* IMPORTANT NOTES:
@ -585,11 +585,6 @@ channel {
*/
use_knock = yes;
/* invite ops only: Restrict /invite to ops on channels, rather than
* allowing unopped users to invite people to a -i channel.
*/
invite_ops_only = yes;
/* knock delay: The amount of time a user must wait between issuing
* the knock command.
*/

View File

@ -95,9 +95,7 @@
<title>+g, allow anybody to invite</title>
<para>
When this mode is set, anybody may use the INVITE command on the channel in question. When it
is unset, only channel operators may use the INVITE command
(unless the invite_ops_only option is disabled and +i is
not set).
is unset, only channel operators may use the INVITE command.
</para>
<para>
When this mode is set together with +i, all channel members can influence who can join.

View File

@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: s_conf.h 3251 2007-03-05 18:58:38Z nenolod $
* $Id: s_conf.h 3257 2007-03-13 16:09:28Z jilles $
*/
#ifndef INCLUDED_s_conf_h
@ -268,7 +268,6 @@ struct config_channel_entry
int default_split_server_count;
int default_split_user_count;
int burst_topicwho;
int invite_ops_only;
int kick_on_split_riding;
};

View File

@ -1 +1 @@
#define SERNO "20070305-3253"
#define SERNO "20070306-3255"

View File

@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: m_info.c 3131 2007-01-21 15:36:31Z jilles $
* $Id: m_info.c 3257 2007-03-13 16:09:28Z jilles $
*/
#include "stdinc.h"
@ -63,7 +63,7 @@ mapi_hlist_av1 info_hlist[] = {
{ NULL, NULL }
};
DECLARE_MODULE_AV1(info, NULL, NULL, info_clist, info_hlist, NULL, "$Revision: 3131 $");
DECLARE_MODULE_AV1(info, NULL, NULL, info_clist, info_hlist, NULL, "$Revision: 3257 $");
/*
* jdc -- Structure for our configuration value table
@ -531,12 +531,6 @@ static struct InfoStruct info_table[] = {
&ConfigChannel.knock_delay_channel,
"Delay between KNOCK attempts to a channel",
},
{
"invite_ops_only",
OUTPUT_BOOLEAN_YN,
&ConfigChannel.invite_ops_only,
"INVITE is restricted to channelops only"
},
{
"kick_on_split_riding",
OUTPUT_BOOLEAN_YN,

View File

@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: m_invite.c 718 2006-02-08 20:26:58Z jilles $
* $Id: m_invite.c 3257 2007-03-13 16:09:28Z jilles $
*/
#include "stdinc.h"
@ -48,7 +48,7 @@ struct Message invite_msgtab = {
{mg_unreg, {m_invite, 3}, {m_invite, 3}, mg_ignore, mg_ignore, {m_invite, 3}}
};
mapi_clist_av1 invite_clist[] = { &invite_msgtab, NULL };
DECLARE_MODULE_AV1(invite, NULL, NULL, invite_clist, NULL, NULL, "$Revision: 718 $");
DECLARE_MODULE_AV1(invite, NULL, NULL, invite_clist, NULL, NULL, "$Revision: 3257 $");
static void add_invite(struct Channel *, struct Client *);
@ -126,23 +126,19 @@ m_invite(struct Client *client_p, struct Client *source_p, int parc, const char
}
/* only store invites for +i channels */
/* if the invite could allow someone to join who otherwise could not,
* unconditionally require ops, unless the channel is +g */
if(ConfigChannel.invite_ops_only || (chptr->mode.mode & MODE_INVITEONLY))
/* unconditionally require ops, unless the channel is +g */
/* treat remote clients as chanops */
if(MyClient(source_p) && !is_chanop(msptr) &&
!(chptr->mode.mode & MODE_FREEINVITE))
{
/* treat remote clients as chanops */
if(MyClient(source_p) && !is_chanop(msptr) &&
!(chptr->mode.mode & MODE_FREEINVITE))
{
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
me.name, source_p->name, parv[2]);
return 0;
}
if(chptr->mode.mode & MODE_INVITEONLY)
store_invite = 1;
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
me.name, source_p->name, parv[2]);
return 0;
}
if(chptr->mode.mode & MODE_INVITEONLY)
store_invite = 1;
if(MyConnect(source_p))
{
sendto_one(source_p, form_str(RPL_INVITING),

View File

@ -1,5 +1,5 @@
/* This code is in the public domain.
* $Id: newconf.c 3251 2007-03-05 18:58:38Z nenolod $
* $Id: newconf.c 3257 2007-03-13 16:09:28Z jilles $
*/
#include "stdinc.h"
@ -2085,7 +2085,6 @@ static struct ConfEntry conf_channel_table[] =
{ "default_split_user_count", CF_INT, NULL, 0, &ConfigChannel.default_split_user_count },
{ "default_split_server_count", CF_INT, NULL, 0, &ConfigChannel.default_split_server_count },
{ "burst_topicwho", CF_YESNO, NULL, 0, &ConfigChannel.burst_topicwho },
{ "invite_ops_only", CF_YESNO, NULL, 0, &ConfigChannel.invite_ops_only },
{ "kick_on_split_riding", CF_YESNO, NULL, 0, &ConfigChannel.kick_on_split_riding },
{ "knock_delay", CF_TIME, NULL, 0, &ConfigChannel.knock_delay },
{ "knock_delay_channel",CF_TIME, NULL, 0, &ConfigChannel.knock_delay_channel },

View File

@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: s_conf.c 3251 2007-03-05 18:58:38Z nenolod $
* $Id: s_conf.c 3257 2007-03-13 16:09:28Z jilles $
*/
#include "stdinc.h"
@ -830,7 +830,6 @@ set_default_conf(void)
ConfigChannel.max_bans = 25;
ConfigChannel.max_bans_large = 500;
ConfigChannel.burst_topicwho = NO;
ConfigChannel.invite_ops_only = YES;
ConfigChannel.kick_on_split_riding = NO;
ConfigChannel.default_split_user_count = 15000;