* remove Dave's SYS_ users from the addressbookpopup, since you don't want to send...
authorWilfried Göesgens <willi@citadel.org>
Sun, 3 Aug 2008 18:38:23 +0000 (18:38 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 3 Aug 2008 18:38:23 +0000 (18:38 +0000)
webcit/addressbook_popup.c

index 230e09dc3d7369e48cbb7fa69d2b71723346bb60..6cfb5b5c3a8b02c918d619ac102628334d257857 100644 (file)
@@ -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);
 
                }