Changeset 24de9fa


Ignore:
Timestamp:
2015-07-28T23:41:24Z (4 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4966712a, 69b94c3
Parents:
77ed9b7
Message:

Restore old autojoin logic and a hopefully better fix for the problem
jgeboski was trying to solve. #1221 for details.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc_channel.c

    r77ed9b7 r24de9fa  
    445445                        char *acc_s;
    446446
    447                         if (!aj || (ic->flags & IRC_CHANNEL_JOINED)) {
    448                                 /* Only continue if this one's marked as auto_join
    449                                    or if we're in it already. (Possible if the
    450                                    client auto-rejoined it before identyfing.) */
     447                        if (!aj && !(ic->flags & IRC_CHANNEL_JOINED)) {
     448                                /* Only proceed if this one's marked as auto_join
     449                                   or if we're in it already. (Very likely the IRC
     450                                   client auto-(re)joining at reconnect time.) */
    451451                                continue;
    452452                        } else if (!(acc_s = set_getstr(&ic->set, "account"))) {
  • irc_im.c

    r77ed9b7 r24de9fa  
    836836            (room = set_getstr(&ic->set, "room")) &&
    837837            (acc = account_get(ic->irc->b, acc_s)) &&
    838             acc->ic && acc->prpl->chat_join) {
     838            acc->ic && (acc->ic->flags & OPT_LOGGED_IN) &&
     839            acc->prpl->chat_join) {
    839840                char *nick;
    840841
Note: See TracChangeset for help on using the changeset viewer.