Changeset f8feb8a for root_commands.c


Ignore:
Timestamp:
2015-05-07T10:33:06Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
0ace810
Parents:
e9face7
Message:

add_buddy and remove_buddy should no longer be mandatory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    re9face7 rf8feb8a  
    647647                irc_rootmsg(irc, "That account is not on-line");
    648648                return;
     649        } else if (add_on_server && !a->prpl->add_buddy) {
     650                irc_rootmsg(irc, "IM protocol does not support contact list modification");
     651                return;
    649652        }
    650653
     
    717720        s = g_strdup(bu->handle);
    718721
    719         bu->ic->acc->prpl->remove_buddy(bu->ic, bu->handle, NULL);
     722        if (bu->ic->acc->prpl->remove_buddy) {
     723                bu->ic->acc->prpl->remove_buddy(bu->ic, bu->handle, NULL);
     724        } else {
     725                irc_rootmsg(irc, "IM protocol does not support contact list modification, "
     726                                 "removal will likely not be permanent");
     727        }
     728
    720729        nick_del(bu);
    721730        if (g_slist_find(irc->users, iu)) {
Note: See TracChangeset for help on using the changeset viewer.