Fix a wrong error message.
authorAndrew Miller <a1kmm@amxl.com>
Sun, 19 Jun 2005 12:06:45 +0000 (12:06 +0000)
committerAndrew Miller <a1kmm@amxl.com>
Sun, 19 Jun 2005 12:06:45 +0000 (12:06 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1431 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_invite.c

index b0d90ffca1e4bb2a6336bc9d0878ce6e19f91d69..3f618b3dca566ba947d0d3dc5b5495c07be0bb2b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 <mdpoole@troilus.org>
 
        * ircd/s_debug.c (count_memory): Consolidate several lines; make
index c550263b28a0611eb0504a543dc04ec04b5d8be4..9ec4ec934d1fa76492995919b4568935dc99f27a 100644 (file)
@@ -148,7 +148,7 @@ int m_invite(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     return 0;
 
   if (!(chptr = FindChannel(parv[2]))) {
-    send_reply(sptr, ERR_NOTONCHANNEL, parv[2]);
+    send_reply(sptr, ERR_NOSUCHCHANNEL, parv[2]);
     return 0;
   }