Changeset 7a9d968 for irc_im.c


Ignore:
Timestamp:
2018-03-10T11:30:39Z (6 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
5447c59
Parents:
3f44e43 (diff), 4a9c6b0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r3f44e43 r7a9d968  
    8989
    9090        if (bu->flags & BEE_USER_LOCAL) {
    91                 char *s = set_getstr(&bee->set, "handle_unknown");
    92 
    93                 if (strcmp(s, "add_private") == 0) {
     91                char *s = set_getstr(&bu->ic->acc->set, "handle_unknown") ? :
     92                          set_getstr(&bee->set, "handle_unknown");
     93
     94                if (g_strcasecmp(s, "add_private") == 0) {
    9495                        iu->last_channel = NULL;
    95                 } else if (strcmp(s, "add_channel") == 0) {
     96                } else if (g_strcasecmp(s, "add_channel") == 0) {
    9697                        iu->last_channel = irc->default_channel;
    9798                }
     
    634635        }
    635636
    636         if (ic->flags & IRC_CHANNEL_JOINED) {
    637                 irc_channel_printf(ic, "Cleaning up channel, bye!");
    638         }
    639 
    640637        ic->data = NULL;
    641638        c->ui_data = NULL;
Note: See TracChangeset for help on using the changeset viewer.