Changeset 4385
- Timestamp:
- 09/28/06 17:59:21 (2 years ago)
- Files:
-
- wire/trunk/NEWS (modified) (1 diff)
- wire/trunk/wire/chats.c (modified) (2 diffs)
- wire/trunk/wire/chats.h (modified) (1 diff)
- wire/trunk/wire/client.c (modified) (1 diff)
- wire/trunk/wire/client.h (modified) (1 diff)
- wire/trunk/wire/commands.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wire/trunk/NEWS
r4384 r4385 6 6 - Add support for private chats 7 7 - Clear the chat action indicator when scrolling to the bottom of a window 8 - Include timestamp and icon path when saving bookmark 8 9 9 10 1.1.1 wire/trunk/wire/chats.c
r4384 r4385 85 85 void wr_clear_chats(void) { 86 86 wi_hash_remove_all_data(wr_chats); 87 88 wi_release(wr_public_chat); 89 wr_public_chat = NULL; 87 wr_chat_remove_all_users(wr_public_chat); 88 wr_chats_add_chat(wr_public_chat); 90 89 91 90 wi_release(wr_private_chat); … … 225 224 226 225 226 void wr_chat_remove_all_users(wr_chat_t *chat) { 227 wi_list_remove_all_data(chat->users_list); 228 wi_hash_remove_all_data(chat->users_hash); 229 } 230 231 232 227 233 wr_user_t * wr_chat_user_with_uid(wr_chat_t *chat, wr_uid_t uid) { 228 234 return wi_hash_data_for_key(chat->users_hash, wi_number_with_int32(uid)); wire/trunk/wire/chats.h
r4384 r4385 56 56 void wr_chat_add_user(wr_chat_t *, wr_user_t *); 57 57 void wr_chat_remove_user(wr_chat_t *, wr_user_t *); 58 void wr_chat_remove_all_users(wr_chat_t *); 58 59 wr_user_t * wr_chat_user_with_uid(wr_chat_t *, wr_uid_t); 59 60 wr_user_t * wr_chat_user_with_nick(wr_chat_t *, wi_string_t *); wire/trunk/wire/client.c
r4384 r4385 91 91 wi_string_t *wr_password; 92 92 93 wi_string_t *wr_icon_path; 93 94 wi_string_t *wr_timestamp_format; 94 95 wire/trunk/wire/client.h
r4197 r4385 72 72 extern wi_string_t *wr_login; 73 73 extern wi_string_t *wr_password; 74 75 extern wi_string_t *wr_icon_path; 74 76 extern wi_string_t *wr_timestamp_format; 75 77 wire/trunk/wire/commands.c
r4384 r4385 789 789 790 790 if(string) { 791 wi_release(wr_icon_path); 792 wr_icon_path = wi_retain(path); 793 791 794 wi_release(wr_icon); 792 795 wr_icon = wi_retain(wi_string_base64(string)); … … 1446 1449 1447 1450 wi_file_write(file, WI_STR("charset %@\n"), wi_string_encoding_charset(wr_client_string_encoding)); 1451 wi_file_write(file, WI_STR("timestamp %@\n"), wr_timestamp_format); 1448 1452 wi_file_write(file, WI_STR("nick %@\n"), wr_nick); 1449 1453 … … 1451 1455 wi_file_write(file, WI_STR("status %@\n"), wr_status); 1452 1456 1457 if(wr_icon_path) 1458 wi_file_write(file, WI_STR("icon %@\n"), wr_icon_path); 1459 1453 1460 if(wr_connected) { 1454 1461 if(wi_string_length(wr_login) > 0 && wi_string_length(wr_password) > 0)
