From ee658821e34d7daa7a01ce557c0746e19b43796c Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Fri, 25 Mar 2016 21:05:52 -0500 Subject: [PATCH] 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. --- authd/provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authd/provider.c b/authd/provider.c index e7b07c50..13b9a0a8 100644 --- a/authd/provider.c +++ b/authd/provider.c @@ -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);