invite: revert the ERR_CHANOPRIVSNEEDED change too

This commit is contained in:
Ariadne Conill 2020-06-26 14:21:29 -06:00
parent e3c27d7dbd
commit 27590ae0b4

View file

@ -158,7 +158,7 @@ m_invite(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
{ {
if (hdata.error) if (hdata.error)
sendto_one_numeric(source_p, hdata.approved, "%s", hdata.error); sendto_one_numeric(source_p, hdata.approved, "%s", hdata.error);
else if (hdata.approved == ERR_CHANOPRIVSNEEDED) else
sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED), sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
me.name, source_p->name, parv[2]); me.name, source_p->name, parv[2]);