From 95749fd514c4e6041e3117f20f0d7b461dc379cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Sun, 3 Aug 2008 18:38:23 +0000 Subject: [PATCH] * remove Dave's SYS_ users from the addressbookpopup, since you don't want to send them emails --- webcit/addressbook_popup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webcit/addressbook_popup.c b/webcit/addressbook_popup.c index 230e09dc3..6cfb5b5c3 100644 --- a/webcit/addressbook_popup.c +++ b/webcit/addressbook_popup.c @@ -118,6 +118,10 @@ void display_address_book_inner_div() { if (buf[0] == '1') while(len = serv_getln(buf, sizeof buf), strcmp(buf, "000")) { Name = (char*) malloc(len + 1); len = extract_token(Name, buf, 0, '|', len + 1); + if((len > 5) && (strncmp(Name, "SYS_", 4) == 0)) { + free(Name); + continue; + } Put(List, Name, len, Name, NULL); } -- 2.39.2