Changeset 54e6207


Ignore:
Timestamp:
2008-01-10T16:10:10Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
6172871
Parents:
6abf3ec
Message:

support for receiving emoted messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    r6abf3ec r54e6207  
    525525                                                        {
    526526                                                                char *body = g_list_nth_data(sd->body, i);
    527                                                                 if(!strcmp(sd->type, "SAID"))
     527                                                                if(!strcmp(sd->type, "SAID") || !strcmp(sd->type, "EMOTED"))
    528528                                                                {
     529                                                                        char *st;
     530                                                                        if(!strcmp(sd->type, "SAID"))
     531                                                                                st = g_strdup(body);
     532                                                                        else
     533                                                                        {
     534                                                                                st = g_strdup_printf("/me %s", body);
     535                                                                        }
    529536                                                                        if(!gc)
    530537                                                                                /* Private message */
    531                                                                                 imcb_buddy_msg(ic, sd->handle, body, 0, 0);
     538                                                                                imcb_buddy_msg(ic, sd->handle, st, 0, 0);
    532539                                                                        else
    533540                                                                                /* Groupchat message */
    534                                                                                 imcb_chat_msg(gc, sd->handle, body, 0, 0);
     541                                                                                imcb_chat_msg(gc, sd->handle, st, 0, 0);
     542                                                                        g_free(st);
    535543                                                                }
    536544                                                                else if(!strcmp(sd->type, "SETTOPIC"))
Note: See TracChangeset for help on using the changeset viewer.