- Timestamp:
- 2007-04-22T02:15:36Z (18 years ago)
- Branches:
- master
- Children:
- 05bcd20, e35d1a1
- Parents:
- df1fb67
- Location:
- protocols
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/nogaim.h
rdf1fb67 rc737ba7 164 164 (* chat_with) (struct im_connection *, char *who); 165 165 struct groupchat * 166 (* chat_join) (struct im_connection *, char * chat, char *nick, char *password);166 (* chat_join) (struct im_connection *, char *room, char *nick, char *password); 167 167 168 168 GList *(* away_states)(struct im_connection *ic); -
protocols/oscar/oscar.c
rdf1fb67 rc737ba7 2530 2530 } 2531 2531 2532 int oscar_chat_join(struct im_connection * ic, char * name)2532 struct groupchat *oscar_chat_join(struct im_connection * ic, char * room, char * nick, char * password ) 2533 2533 { 2534 2534 struct oscar_data * od = (struct oscar_data *)ic->proto_data; 2535 2536 2535 aim_conn_t * cur; 2537 2536 2538 2537 if((cur = aim_getconn_type(od->sess, AIM_CONN_TYPE_CHATNAV))) { 2539 2540 return (aim_chatnav_createroom(od->sess, cur, name, 4) == 0); 2541 2538 int st; 2539 2540 st = aim_chatnav_createroom(od->sess, cur, room, 4); 2541 2542 return NULL; 2542 2543 } else { 2543 2544 struct create_room * cr = g_new0(struct create_room, 1); 2545 2544 2546 cr->exchange = 4; 2545 cr->name = g_strdup( name);2547 cr->name = g_strdup(room); 2546 2548 od->create_rooms = g_slist_append(od->create_rooms, cr); 2547 2549 aim_reqservice(od->sess, od->conn, AIM_CONN_TYPE_CHATNAV); 2548 return 1; 2550 2551 return NULL; 2549 2552 } 2550 2553 } … … 2553 2556 { 2554 2557 struct oscar_data * od = (struct oscar_data *)ic->proto_data; 2555 intret;2558 struct groupchat *ret; 2556 2559 static int chat_id = 0; 2557 2560 char * chatname; … … 2559 2562 chatname = g_strdup_printf("%s%d", ic->acc->user, chat_id++); 2560 2563 2561 ret = oscar_chat_join(ic, chatname );2564 ret = oscar_chat_join(ic, chatname, NULL, NULL); 2562 2565 2563 2566 aim_chat_invite(od->sess, od->conn, who, "", 4, chatname, 0x0); … … 2570 2573 void oscar_accept_chat(gpointer w, struct aim_chat_invitation * inv) 2571 2574 { 2572 oscar_chat_join(inv->ic, inv->name );2575 oscar_chat_join(inv->ic, inv->name, NULL, NULL); 2573 2576 g_free(inv->name); 2574 2577 g_free(inv); … … 2600 2603 ret->chat_leave = oscar_chat_leave; 2601 2604 ret->chat_with = oscar_chat_with; 2605 ret->chat_join = oscar_chat_join; 2602 2606 ret->add_permit = oscar_add_permit; 2603 2607 ret->add_deny = oscar_add_deny;
Note: See TracChangeset
for help on using the changeset viewer.