Fix a wrong error message.
[ircu2.10.12-pk.git] / ircd / m_invite.c
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;
   }