Committer  : a1kmm
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-06-19 12:06:56 UTC

Modified files:
     ircd/m_invite.c ChangeLog

Log message:

Fix a wrong error message.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.649 ircu2.10/ChangeLog:1.650
--- ircu2.10/ChangeLog:1.649    Sun Jun 19 04:33:32 2005
+++ ircu2.10/ChangeLog  Sun Jun 19 05:06:45 2005
@@ -6,6 +6,9 @@
        * ircd/ircd_res.c (res_readreply): Check res_ourserver before walking
        the pending request list, to make DoS attacks harder.
 
+       * ircd/m_invite.c (m_invite): Give no such channel rather than not on
+       channel when the channel being invited to does not exist.
+       
 2005-06-18  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/s_debug.c (count_memory): Consolidate several lines; make
Index: ircu2.10/ircd/m_invite.c
diff -u ircu2.10/ircd/m_invite.c:1.21 ircu2.10/ircd/m_invite.c:1.22
--- ircu2.10/ircd/m_invite.c:1.21       Mon May  2 20:47:42 2005
+++ ircu2.10/ircd/m_invite.c    Sun Jun 19 05:06:45 2005
@@ -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.21 2005/05/03 03:47:42 entrope Exp $
+ * $Id: m_invite.c,v 1.22 2005/06/19 12:06:45 a1kmm Exp $
  */
 
 /*
@@ -148,7 +148,7 @@
     return 0;
 
   if (!(chptr = FindChannel(parv[2]))) {
-    send_reply(sptr, ERR_NOTONCHANNEL, parv[2]);
+    send_reply(sptr, ERR_NOSUCHCHANNEL, parv[2]);
     return 0;
   }
 
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to