Changeset 5652d43 for skype


Ignore:
Timestamp:
2007-11-23T23:46:20Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
fc26bcb
Parents:
eb9cbb8
Message:

warning fix in skype_chat_with()
fix "when you start a group chat, a warning is shown saying creating the
group chat is failed, but in fact it is created"

Location:
skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skype/README

    reb9cbb8 r5652d43  
    230230== Known bugs
    231231
    232 - When you join start a group chat, a warning is shown saying creating the
    233   group chat is failed. Indeed it is created. I should improve the API to be
    234   able to suppress that warning.
     232- None at this time.
    235233
    236234== Screenshots
  • skype/skype.c

    reb9cbb8 r5652d43  
    446446                                                *info = '\0';
    447447                                        info++;
     448                                        /* Remove fake chat if we created one in skype_chat_with() */
     449                                        struct groupchat *gc = skype_chat_by_name(ic, "");
     450                                        if(gc)
     451                                                imcb_chat_free(gc);
    448452                                        if(!strcmp(info, "STATUS MULTI_SUBSCRIBED"))
    449453                                        {
     
    456460                                        else if(!strcmp(info, "STATUS DIALOG") && sd->groupchat_with)
    457461                                        {
    458                                                 struct groupchat *gc = imcb_chat_new( ic, id );
     462                                                gc = imcb_chat_new( ic, id );
    459463                                                /* According to the docs this
    460464                                                 * is necessary. However it
     
    477481                                        else if(!strcmp(info, "STATUS UNSUBSCRIBED"))
    478482                                        {
    479                                                 struct groupchat *gc = skype_chat_by_name(ic, id);
     483                                                gc = skype_chat_by_name(ic, id);
    480484                                                if(gc)
    481485                                                        gc->data = (void*)FALSE;
     
    490494                                        {
    491495                                                info += 6;
    492                                                 struct groupchat *gc = skype_chat_by_name(ic, id);
     496                                                gc = skype_chat_by_name(ic, id);
    493497                                                if(gc && (sd->adder || sd->topic_wait))
    494498                                                {
     
    506510                                        {
    507511                                                info += 14;
    508                                                 struct groupchat *gc = skype_chat_by_name(ic, id);
     512                                                gc = skype_chat_by_name(ic, id);
    509513                                                /* Hack! We set ->data to TRUE
    510514                                                 * while we're on the channel
     
    741745        sd->groupchat_with = g_strdup(nick);
    742746        g_free(nick);
    743         return(NULL);
     747        /* We create a fake chat for now. We will replace it with a real one in
     748         * the real callback. */
     749        return(imcb_chat_new( ic, "" ));
    744750}
    745751
Note: See TracChangeset for help on using the changeset viewer.