]> jfr.im git - irc/evilnet/x3.git/commitdiff
Removed code to save nick registrations in the old format as it is no longer used
authorMatthew Beeching <redacted>
Thu, 6 Feb 2014 15:41:50 +0000 (15:41 +0000)
committerMatthew Beeching <redacted>
Thu, 6 Feb 2014 15:41:50 +0000 (15:41 +0000)
.gitignore
src/nickserv.c

index 72afdb786995924b3d2fa1c8cf2172630563ae66..0b18ac33e4c26901af4c885a7a58965649ae524d 100644 (file)
@@ -28,5 +28,6 @@ src/stamp-h1
 src/version.c
 src/config.h
 src/x3
+src/*.orig
 x3
 
index a3a0fb16fef0b03c2a29983b43583b21c0aee39b..9dcd8a0dd2ec1fb711bcaaf81a2850e2909ef7a3 100644 (file)
@@ -4130,15 +4130,8 @@ nickserv_saxdb_write(struct saxdb_context *ctx) {
         if (hi->maxlogins)
             saxdb_write_int(ctx, KEY_MAXLOGINS, hi->maxlogins);
         if (hi->nicks) {
-            struct string_list *slist;
             struct nick_info *ni;
 
-            slist = alloc_string_list(nickserv_conf.nicks_per_handle);
-            for (ni = hi->nicks; ni; ni = ni->next) string_list_append(slist, ni->nick);
-            saxdb_write_string_list(ctx, KEY_NICKS, slist);
-            free(slist->list);
-            free(slist);
-
             saxdb_start_record(ctx, KEY_NICKS_EX, 0);
             for (ni = hi->nicks; ni; ni = ni->next) {
                 saxdb_start_record(ctx, ni->nick, 0);