diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-06-05 14:43:34 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2019-07-21 20:59:35 +0100 |
commit | e9166ea294055c5cc510de2b05ed05056f05ed36 (patch) | |
tree | 82fbaa918b023e7eb7503dddc482ce8b6c21b7d7 /src | |
parent | a8305cde195225a2ca7b3384cb4c2d1290ed0867 (diff) |
Add CERTFP capability
Avoid sending CERTFP commands to servers which do not support this
by adding a CERTFP capability.
Diffstat (limited to 'src')
-rw-r--r-- | src/ircd.c | 1 | ||||
-rw-r--r-- | src/s_user.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -312,6 +312,7 @@ initialize_server_capabs(void) #ifdef HALFOPS add_capability("HOPS", CAP_HOPS, 1); #endif + add_capability("CERTFP", CAP_CERTFP, 1); } /* write_pidfile() diff --git a/src/s_user.c b/src/s_user.c index 9e861a4..9cf2aa9 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -650,7 +650,7 @@ introduce_client(struct Client *source_p) source_p->servptr->name, source_p->info); } - if (!EmptyString(source_p->certfp)) + if (!EmptyString(source_p->certfp) && IsCapable(server, CAP_CERTFP)) sendto_one(server, ":%s CERTFP %s", ID(source_p), source_p->certfp); } } |