Committer : isomer
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_07
Commit time: 2004-03-19 23:51:52 UTC
Modified files:
Tag: u2_10_11_07
ChangeLog ircd/m_invite.c
Log message:
Author: Isomer <[EMAIL PROTECTED]>
Log message:
Removed the ability to invite to non existant channels. It's always been
cruft. We have CPU to burn on most servers now, since kqueue/epoll was
added.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.130.2.5 ircu2.10/ChangeLog:1.290.2.130.2.6
--- ircu2.10/ChangeLog:1.290.2.130.2.5 Fri Mar 19 15:36:17 2004
+++ ircu2.10/ChangeLog Fri Mar 19 15:51:42 2004
@@ -1,3 +1,6 @@
+2004-03-20 Isomer <[EMAIL PROTECTED]>
+ * ircd/m_invite.c: Disallow invites to non existant channels
+
2004-02-27 Entrope <[EMAIL PROTECTED]>
* ircd/ircd.c: Move the PID file acquisition after reading
the config file, so that F:PPATH works.
Index: ircu2.10/ircd/m_invite.c
diff -u ircu2.10/ircd/m_invite.c:1.10.2.4 ircu2.10/ircd/m_invite.c:1.10.2.4.4.1
--- ircu2.10/ircd/m_invite.c:1.10.2.4 Sat Nov 1 02:19:11 2003
+++ ircu2.10/ircd/m_invite.c Fri Mar 19 15:51:42 2004
@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: m_invite.c,v 1.10.2.4 2003/11/01 10:19:11 isomer Exp $
+ * $Id: m_invite.c,v 1.10.2.4.4.1 2004/03/19 23:51:42 isomer Exp $
*/
/*
@@ -146,24 +146,7 @@
return 0;
if (!(chptr = FindChannel(parv[2]))) {
- if (IsLocalChannel(parv[2])) {
- send_reply(sptr, ERR_NOTONCHANNEL, parv[2]);
- return 0;
- }
-
- /* Do not disallow to invite to non-existant #channels, otherwise they
- would simply first be created, causing only MORE bandwidth usage. */
-
- if (check_target_limit(sptr, acptr, cli_name(acptr), 0))
- return 0;
-
- send_reply(sptr, RPL_INVITING, cli_name(acptr), parv[2]);
-
- if (cli_user(acptr)->away)
- send_reply(sptr, RPL_AWAY, cli_name(acptr), cli_user(acptr)->away);
-
- sendcmdto_one(sptr, CMD_INVITE, acptr, "%s :%s", cli_name(acptr), parv[2]);
-
+ send_reply(sptr, ERR_NOTONCHANNEL, parv[2]);
return 0;
}
----------------------- End of diff -----------------------