Commits

Anonymous committed 4136665

[svn] Remove invite_ops_only, forcing it to YES.

Comments (0)

Files changed (10)

+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
  * 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.
  */
 	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;

doc/reference.conf

  *
  * 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:
 	 */
 	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.
 	 */

doc/sgml/oper-guide/cmodes.sgml

 	<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.
  *  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
 	int default_split_server_count;
 	int default_split_user_count;
 	int burst_topicwho;
-	int invite_ops_only;
 	int kick_on_split_riding;
 };
 
-#define SERNO "20070305-3253"
+#define SERNO "20070306-3255"
  *  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"
 	{ 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
 		"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,
 		&ConfigChannel.kick_on_split_riding,

modules/m_invite.c

  *  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"
 	{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 *);
 
 	}
 
 	/* 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;
-		}
+		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(chptr->mode.mode & MODE_INVITEONLY)
+		store_invite = 1;
 
 	if(MyConnect(source_p))
 	{
 /* 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"
 	{ "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	},
  *  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"
 	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;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.