Changeset 246b98b for protocols/jabber


Ignore:
Timestamp:
2018-03-31T03:05:46Z (3 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
896bea2, 8c4af56e
Parents:
a39ede7
Message:

jabber: try to join anyway after "Already present in chat"

Most of the time that error meant a confusion on bitlbee's side, often a
server for which we sent a join request and never got a reply for.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    ra39ede7 r246b98b  
    579579                imcb_error(ic, "%s is not a valid Jabber room name. Maybe you mean %s@conference.%s?",
    580580                           room, room, jd->server);
    581         } else if (jabber_chat_by_jid(ic, room)) {
    582                 imcb_error(ic, "Already present in chat `%s'", room);
    583581        } else {
     582                struct groupchat *old;
     583
     584                if ((old = jabber_chat_by_jid(ic, room))) {
     585                        imcb_log(ic, "Warning: Already present in chat `%s' - trying to join anyway", room);
     586                        jabber_chat_free(old);
     587                }
     588
    584589                /* jabber_chat_join without the underscore is the conference.c one */
    585590                return jabber_chat_join(ic, room, final_nick, set_getstr(sets, "password"),
Note: See TracChangeset for help on using the changeset viewer.