reject_client: send back ident and hostname with rejection.

At the moment (possibly not in the future) ircd will want to override
our decision whether or not to accept a client; we need to give them
enough information back to ensure they can do it properly.
This commit is contained in:
Elizabeth Myers 2016-03-25 21:05:52 -05:00
parent a21a82b1b6
commit ee658821e3

View file

@ -173,7 +173,7 @@ void reject_client(struct auth_client *auth, provider_t id, const char *reason)
}
/* TODO send back ident */
rb_helper_write(authd_helper, "R %x %c :%s", auth->cid, reject, reason);
rb_helper_write(authd_helper, "R %x %c %s %s :%s", auth->cid, reject, auth->username, auth->hostname, reason);
set_provider_off(auth, id);
cancel_providers(auth);