]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_whois.c
Pass certfp to other servers and show it in whois. Do not show it on connect.
[irc/rqf/shadowircd.git] / modules / m_whois.c
index ca8dc23848522c87cc16d17c43771469f30de822..f4fb8854d06f04ccf27e0c7aab04cf44fb421cf9 100644 (file)
@@ -320,6 +320,11 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
        if(IsSSLClient(target_p))
                sendto_one_numeric(source_p, RPL_WHOISSECURE, form_str(RPL_WHOISSECURE),
                                   target_p->name);
+       if((source_p == target_p || IsOper(source_p)) &&
+                       target_p->certfp != NULL)
+               sendto_one_numeric(source_p, RPL_WHOISCERTFP,
+                               form_str(RPL_WHOISCERTFP),
+                               target_p->name, target_p->certfp);
 
        if(MyClient(target_p))
        {