From 39a2487ee308ee315f1774f6155a752822e46b52 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 27 Sep 2006 23:08:54 +0000
Subject: [PATCH] Set the ID for newly added list entries.  Prevents bug where
 usage stats for newly added items weren't updated until after the list was
 re-read.

Thanks Electrosys
---
 src/syncterm/bbslist.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/syncterm/bbslist.c b/src/syncterm/bbslist.c
index 00a3984a20..0790a90442 100644
--- a/src/syncterm/bbslist.c
+++ b/src/syncterm/bbslist.c
@@ -786,6 +786,7 @@ struct bbslist *show_bbslist(int mode)
 							list[listcount]=list[listcount-1];
 							list[listcount-1]=(struct bbslist *)malloc(sizeof(struct bbslist));
 							memcpy(list[listcount-1],&defaults,sizeof(struct bbslist));
+							list[listcount-1]->id=listcount-1;
 							uifc.changes=0;
 							uifc.helpbuf=	"`BBS Name`\n\n"
 											"Enter the BBS name as it is to appear in the list.";
-- 
GitLab