From: Andrew Miller Date: Sun, 19 Jun 2005 12:06:45 +0000 (+0000) Subject: Fix a wrong error message. X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=ec53374926d086d0015fe0fa593e3e8d11b95764;p=ircu2.10.12-pk.git Fix a wrong error message. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1431 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index b0d90ff..3f618b3 100644 --- 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 * ircd/s_debug.c (count_memory): Consolidate several lines; make diff --git a/ircd/m_invite.c b/ircd/m_invite.c index c550263..9ec4ec9 100644 --- a/ircd/m_invite.c +++ b/ircd/m_invite.c @@ -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; }