Changeset 03f3828 for protocols/oscar
- Timestamp:
- 2010-07-24T14:06:22Z (14 years ago)
- Branches:
- master
- Children:
- 7989d40d
- Parents:
- c8791f2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
rc8791f2 r03f3828 2506 2506 } 2507 2507 2508 struct groupchat *oscar_chat_join(struct im_connection * ic, const char * room, const char * nick, const char * password ) 2508 struct groupchat *oscar_chat_join_internal(struct im_connection *ic, const char *room, 2509 const char *nick, const char *password, int exchange_number) 2509 2510 { 2510 2511 struct oscar_data * od = (struct oscar_data *)ic->proto_data; … … 2514 2515 int st; 2515 2516 2516 st = aim_chatnav_createroom(od->sess, cur, room, 4);2517 st = aim_chatnav_createroom(od->sess, cur, room, exchange_number); 2517 2518 2518 2519 return NULL; … … 2520 2521 struct create_room * cr = g_new0(struct create_room, 1); 2521 2522 2522 cr->exchange = 4;2523 cr->exchange = exchange_number; 2523 2524 cr->name = g_strdup(room); 2524 2525 od->create_rooms = g_slist_append(od->create_rooms, cr); … … 2529 2530 } 2530 2531 2532 struct groupchat *oscar_chat_join(struct im_connection *ic, const char *room, 2533 const char *nick, const char *password, set_t **sets) 2534 { 2535 return oscar_chat_join_internal(ic, room, nick, password, set_getint(sets, "exchange_number")); 2536 } 2537 2531 2538 struct groupchat *oscar_chat_with(struct im_connection * ic, char *who) 2532 2539 { … … 2545 2552 2546 2553 c = imcb_chat_new(ic, chatname); 2547 ret = oscar_chat_join (ic, chatname, NULL, NULL);2554 ret = oscar_chat_join_internal(ic, chatname, NULL, NULL, 4); 2548 2555 aim_chat_invite(od->sess, od->conn, who, "", 4, chatname, 0x0); 2549 2556 … … 2557 2564 struct aim_chat_invitation * inv = data; 2558 2565 2559 oscar_chat_join (inv->ic, inv->name, NULL, NULL);2566 oscar_chat_join_internal(inv->ic, inv->name, NULL, NULL, 4); 2560 2567 g_free(inv->name); 2561 2568 g_free(inv); … … 2568 2575 g_free(inv->name); 2569 2576 g_free(inv); 2577 } 2578 2579 void oscar_chat_add_settings(account_t *acc, set_t **head) 2580 { 2581 set_add(head, "exchange_number", "4", set_eval_int, NULL); 2582 } 2583 2584 void oscar_chat_free_settings(account_t *acc, set_t **head) 2585 { 2586 set_del(head, "exchange_number"); 2570 2587 } 2571 2588 … … 2590 2607 ret->chat_with = oscar_chat_with; 2591 2608 ret->chat_join = oscar_chat_join; 2609 ret->chat_add_settings = oscar_chat_add_settings; 2610 ret->chat_free_settings = oscar_chat_free_settings; 2592 2611 ret->add_permit = oscar_add_permit; 2593 2612 ret->add_deny = oscar_add_deny;
Note: See TracChangeset
for help on using the changeset viewer.