Changeset 7801298 for irc_im.c


Ignore:
Timestamp:
2016-12-27T17:24:50Z (3 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
2e8523b
Parents:
9cdcef0
Message:

Per-account handle_unknown

Credit for the idea goes to russian XMPP spammers. Thanks!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r9cdcef0 r7801298  
    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                }
Note: See TracChangeset for help on using the changeset viewer.