/***********************************************************************
X3 ChangeLog
+2009-12-02 Matthew Beeching <jobe@mdbnet.co.uk>
+
+ * src/nickserv.c: Added merging SSL fingerprint lists during
+ account merging.
+
2009-12-01 Matthew Beeching <jobe@mdbnet.co.uk>
* src/opserv.c: Added ADDALERT reactions noticeuser and msguser
string_list_append(hi_to->masks, strdup(mask));
}
+ /* Merge the SSL fingerprints. */
+ for (ii=0; ii<hi_from->sslfps->used; ii++) {
+ char *sslfp = hi_from->sslfps->list[ii];
+ for (jj=0; jj<hi_to->sslfps->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; ii<hi_from->ignores->used; ii++) {
char *ignore = hi_from->ignores->list[ii];