Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r11e090b rb8ef1b1  
    10881088                int *exch = g_new0(int, 1);
    10891089                GList *m = NULL;
    1090                 char txt[1024];
    1091                 struct aim_chat_invitation * inv = g_new0(struct aim_chat_invitation, 1);
    1092 
    10931090                m = g_list_append(m, g_strdup(name ? name : args->info.chat.roominfo.name));
    10941091                *exch = args->info.chat.roominfo.exchange;
    10951092                m = g_list_append(m, exch);
    10961093
     1094                char txt[1024];
     1095
    10971096                g_snprintf( txt, 1024, "Got an invitation to chatroom %s from %s: %s", name, userinfo->sn, args->msg );
     1097
     1098                struct aim_chat_invitation * inv = g_new0(struct aim_chat_invitation, 1);
    10981099
    10991100                inv->gc = gc;
     
    24502451        type2 = va_arg(ap, int);
    24512452        va_end(ap);
    2452    
    2453         if(type2 == 0x0002) {
    2454                 /* User is typing */
    2455                 serv_got_typing(gc, sn, 0, 1);
    2456         }
    2457         else if (type2 == 0x0001) {
    2458                 /* User has typed something, but is not actively typing (stale) */
    2459                 serv_got_typing(gc, sn, 0, 2);
    2460         }
    2461         else {
    2462                 /* User has stopped typing */
    2463                 serv_got_typing(gc, sn, 0, 0);
    2464         }       
    2465        
     2453
     2454        if(type2 == 0x0001 || type2 == 0x0002)
     2455                serv_got_typing(gc, sn, 0);
     2456
    24662457        return 1;
    24672458}
     
    25052496        struct oscar_data * od = (struct oscar_data*)gc->proto_data;
    25062497        struct chat_connection * ccon;
     2498       
     2499        if(!(ccon = find_oscar_chat(gc, id)))
     2500                return -1;
     2501       
    25072502        int ret;
    25082503        guint8 len = strlen(message);
    25092504        char *s;
    2510        
    2511         if(!(ccon = find_oscar_chat(gc, id)))
    2512                 return -1;
    25132505               
    25142506        for (s = message; *s; s++)
     
    26052597{
    26062598        struct oscar_data * od = (struct oscar_data *)gc->proto_data;
    2607         int ret;
     2599
    26082600        static int chat_id = 0;
    26092601        char * chatname = g_new0(char, strlen(gc->username)+4);
    2610        
    26112602        g_snprintf(chatname, strlen(gc->username) + 4, "%s%d", gc->username, chat_id++);
    26122603 
    2613         ret = oscar_chat_join(gc, chatname);
     2604        int ret = oscar_chat_join(gc, chatname);
    26142605
    26152606        aim_chat_invite(od->sess, od->conn, who, "", 4, chatname, 0x0);
Note: See TracChangeset for help on using the changeset viewer.