ERR_USERONCHANNEL when following a forward is missing a param

This commit is contained in:
jesopo 2021-08-15 05:15:27 +01:00 committed by GitHub
parent 95898abbb1
commit 540c3a8a05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1041,6 +1041,10 @@ send_join_error(struct Client *source_p, int numeric, const char *name)
NORMAL_NUMERIC(ERR_NEEDREGGEDNICK);
NORMAL_NUMERIC(ERR_THROTTLE);
case ERR_USERONCHANNEL:
sendto_one_numeric(source_p, ERR_USERONCHANNEL,
form_str(ERR_USERONCHANNEL), source_p->name, name);
break;
default:
sendto_one_numeric(source_p, numeric,
"%s :Cannot join channel", name);