X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/d57dba72e8d27dbb09969c89b7db1a06ead5d61f..c73514ea1e6c286b2418e7b845c99a4d36601570:/src/nickserv.c diff --git a/src/nickserv.c b/src/nickserv.c index 223ed57..01c6325 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -4108,6 +4108,16 @@ static NICKSERV_FUNC(cmd_merge) string_list_append(hi_to->masks, strdup(mask)); } + /* Merge the SSL fingerprints. */ + for (ii=0; iisslfps->used; ii++) { + char *sslfp = hi_from->sslfps->list[ii]; + for (jj=0; jjsslfps->used; jj++) + if (!irccasecmp(hi_to->sslfps->list[jj], sslfp)) + break; + if (jj==hi_to->sslfps->used) /* Nothing from the "to" handle covered this sslfp, so add it. */ + string_list_append(hi_to->sslfps, strdup(sslfp)); + } + /* Merge the ignores. */ for (ii=0; iiignores->used; ii++) { char *ignore = hi_from->ignores->list[ii];