- Timestamp:
- 2010-07-16T23:55:53Z (14 years ago)
- Branches:
- master
- Children:
- 177ffd7
- Parents:
- 4346c3f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r4346c3f4 re437366 2431 2431 char *s; 2432 2432 2433 ccon = c->data; 2433 if (!(ccon = c->data)) 2434 return; 2434 2435 2435 2436 for (s = message; *s; s++) … … 2472 2473 struct im_connection *ic = c->ic; 2473 2474 struct oscar_data * od = (struct oscar_data *)ic->proto_data; 2474 struct chat_connection *ccon = c->data; 2475 struct chat_connection *ccon; 2476 2477 if (!(ccon = c->data)) 2478 return; 2475 2479 2476 2480 aim_chat_invite(od->sess, od->conn, who, message ? message : "", … … 2497 2501 void oscar_chat_leave(struct groupchat *c) 2498 2502 { 2503 if (!c->data) 2504 return; 2499 2505 oscar_chat_kill(c->ic, c->data); 2500 2506 } … … 2528 2534 struct groupchat *ret; 2529 2535 static int chat_id = 0; 2530 char * chatname ;2536 char * chatname, *s; 2531 2537 struct groupchat *c; 2532 2538 2533 2539 chatname = g_strdup_printf("%s%s%d", isdigit(*ic->acc->user) ? "icq" : "", 2534 2540 ic->acc->user, chat_id++); 2541 2542 for (s = chatname; *s; s ++) 2543 if (!isalnum(*s)) 2544 *s = '0'; 2535 2545 2536 2546 c = imcb_chat_new(ic, chatname);
Note: See TracChangeset
for help on using the changeset viewer.