}
}
- SortByHashKey(List, 0);
+ SortByHashKey(List, 1);
it = GetNewHashPos();
while (GetNextHashPos(List, it, &len, &Name, &Namee)) {
wprintf("<option value=\"");
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);
}
- SortByHashKey(List, 0);
+ SortByHashKey(List, 1);
it = GetNewHashPos();
while (GetNextHashPos(List, it, &len, &Name, &Namee)) {
wprintf("<option value=\"");
Put(List, Name, len, Name, NULL);
}
- SortByHashKey(List, 0);
+ SortByHashKey(List, 1);
it = GetNewHashPos();
while (GetNextHashPos(List, it, &len, &Name, (void**)&Namee)) {
wprintf("<option value=\"");
}
DeleteHashPos(&it);
DeleteHash(&List);
- gotoroom((char*)BSTR(saved_roomname)); /* TODO: get rid of typecast */
+ gotoroom(saved_roomname);
}
wprintf("</select>\n");
end_ajax_response();
}
+
+
+
+
+void
+InitModule_ADDRBOOK_POPUP
+(void)
+{
+ WebcitAddUrlHandler(HKEY("display_address_book_middle_div"), display_address_book_middle_div, 0);
+ WebcitAddUrlHandler(HKEY("display_address_book_inner_div"), display_address_book_inner_div, 0);
+}