Changeset f8feb8a for irc_channel.c


Ignore:
Timestamp:
2015-05-07T10:33:06Z (10 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
  • irc_channel.c

    re9face7 rf8feb8a  
    724724        }
    725725
     726        if (!bu->ic->acc->prpl->add_buddy) {
     727                irc_send_num(ic->irc, 482, "%s :IM protocol does not support contact list modification", ic->name);
     728                return FALSE;
     729        }
     730
    726731        bu->ic->acc->prpl->add_buddy(bu->ic, bu->handle,
    727732                                     icc->group ? icc->group->name : NULL);
     
    741746        if (icc->type != IRC_CC_TYPE_GROUP) {
    742747                irc_send_num(ic->irc, 482, "%s :Kicks are only possible to fill_by=group channels", ic->name);
     748                return;
     749        }
     750
     751        if (!bu->ic->acc->prpl->remove_buddy) {
     752                irc_send_num(ic->irc, 482, "%s :IM protocol does not support contact list modification", ic->name);
    743753                return;
    744754        }
Note: See TracChangeset for help on using the changeset viewer.