diff options
Diffstat (limited to 'src/s_serv.c')
-rw-r--r-- | src/s_serv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/s_serv.c b/src/s_serv.c index 3415ad4..8594bd2 100644 --- a/src/s_serv.c +++ b/src/s_serv.c @@ -407,6 +407,10 @@ check_server(const char *name, struct Client *client_p) if (!match_conf_password(client_p->localClient->passwd, conf)) return -2; + if (!EmptyString(conf->certfp)) + if (EmptyString(client_p->certfp) || strcasecmp(client_p->certfp, conf->certfp)) + return -4; + server_conf = conf; } } @@ -616,6 +620,10 @@ sendnick_TS(struct Client *client_p, struct Client *target_p) target_p->servptr->name, target_p->info); } + if (!EmptyString(target_p->certfp)) + sendto_one(client_p, ":%s CERTFP %s", + ID_or_name(target_p, client_p), target_p->certfp); + if (target_p->away[0]) sendto_one(client_p, ":%s AWAY :%s", ID_or_name(target_p, client_p), target_p->away); |