added ssl cipher notice on connect
[ircu2.10.12-pk.git] / ircd / s_user.c
index 632e185b5348bfa146b473cf193342ff7743f448..9853ed237b74e818dfa53267eaaf08767595e065 100644 (file)
@@ -399,6 +399,9 @@ int register_user(struct Client *cptr, struct Client *sptr)
     
     if(cli_connect(sptr)->con_ssl) {
       SetSSLConn(sptr);
+      
+      const char *cipher = ssl_get_cipher(cli_connect(sptr)->con_ssl);
+      sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :You are connected to %s with %s", sptr, cli_name(&me), cipher);
     }
   }
   else {