Ignore:
Timestamp:
2021-04-16T10:15:47Z (9 months ago)
Author:
/ <>
Parents:
2378eca2 (diff), 416b973 (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 'jabberblock' into integration_tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/block.c

    r2378eca2 r21a328ab  
    2323
    2424#include "jabber.h"
    25 
    26 int jabber_block_feature(struct im_connection *ic)
    27 {
    28         struct jabber_data *jd = ic->proto_data;
    29         GSList *features = jd->features;
    30         int foundbk = FALSE;
    31         struct prpl *prpl = ic->acc->prpl;
    32 
    33         while (features) {
    34                 if (!strcmp(features->data, XMLNS_BLOCK)) {
    35                         foundbk = TRUE;
    36                 }
    37                 features = g_slist_next(features);
    38         }
    39 
    40         if (foundbk) {
    41                 prpl->add_deny = jabber_buddy_block;
    42                 prpl->rem_deny = jabber_buddy_unblock;
    43                 prpl->add_permit = jabber_buddy_permit;
    44                 prpl->rem_permit = jabber_buddy_unpermit;
    45         } else {
    46                 prpl->add_deny = NULL;
    47                 prpl->rem_deny = NULL;
    48                 prpl->add_permit = NULL;
    49                 prpl->rem_permit = NULL;
    50         }
    51 
    52         return foundbk;
    53 }
    5425
    5526void jabber_buddy_blockunblock(struct im_connection *ic, char *who, int block)
     
    8758}
    8859
     60//jabber doesn't have permit lists so these are empty
    8961void jabber_buddy_permit(struct im_connection *ic, char *who)
    9062{
    9163}
     64
    9265void jabber_buddy_unpermit(struct im_connection *ic, char *who)
    9366{
Note: See TracChangeset for help on using the changeset viewer.