I've been wanting this for years and finally took the 5 minutes to patch it in. I took the response code (275) from whatever's running OFTC's IRC network.
diff -ur ngircd-16.orig/src/ngircd/irc-info.c ngircd-16/src/ngircd/irc-info.c --- ngircd-16.orig/src/ngircd/irc-info.c 2010-04-25 06:06:29.000000000 -0500 +++ ngircd-16/src/ngircd/irc-info.c 2010-06-11 17:23:18.000000000 -0500 @@ -993,6 +993,13 @@ if( ! IRC_WriteStrClient( from, RPL_WHOISOPERATOR_MSG, Client_ID( from ), Client_ID( c ))) return DISCONNECTED; }
+ + /* Connected using SSL? */ + if( Conn_UsesSSL(Client_Conn(c))) + { + if( ! IRC_WriteStrClient( from, RPL_WHOISSSL_MSG, Client_ID( from ), Client_ID( c ))) return DISCONNECTED; + } + /* Idle and signon time (local clients only!) */ if (Client_Conn(c) > NONE ) { if (! IRC_WriteStrClient(from, RPL_WHOISIDLE_MSG, diff -ur ngircd-16.orig/src/ngircd/messages.h ngircd-16/src/ngircd/messages.h --- ngircd-16.orig/src/ngircd/messages.h 2010-04-25 06:06:29.000000000 -0500 +++ ngircd-16/src/ngircd/messages.h 2010-06-11 17:20:34.000000000 -0500 @@ -47,6 +47,7 @@ #define RPL_LOCALUSERS_MSG "265 %s %lu %lu :Current local users: %lu, Max: %lu" #define RPL_NETUSERS_MSG "266 %s %lu %lu :Current global users: %lu, Max: %lu" #define RPL_STATSCONN_MSG "250 %s :Highest connection count: %lu (%lu connections received)" +#define RPL_WHOISSSL_MSG "275 %s %s :is connected via SSL (secure link)"
#define RPL_AWAY_MSG "301 %s %s :%s" #define RPL_USERHOST_MSG "302 %s :"