Changeset f8feb8a
- Timestamp:
- 2015-05-07T10:33:06Z (10 years ago)
- Children:
- 0ace810
- Parents:
- e9face7
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
irc_channel.c
re9face7 rf8feb8a 724 724 } 725 725 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 726 731 bu->ic->acc->prpl->add_buddy(bu->ic, bu->handle, 727 732 icc->group ? icc->group->name : NULL); … … 741 746 if (icc->type != IRC_CC_TYPE_GROUP) { 742 747 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); 743 753 return; 744 754 } -
protocols/rpc/rpc.c
re9face7 rf8feb8a 883 883 RPC_ADD_OPT_FUNC(set_away); 884 884 RPC_ADD_OPT_FUNC(send_typing); 885 RPC_ADD_ FUNC(add_buddy); /* Consider making these two optional? */886 RPC_ADD_ FUNC(remove_buddy);885 RPC_ADD_OPT_FUNC(add_buddy); 886 RPC_ADD_OPT_FUNC(remove_buddy); 887 887 RPC_ADD_OPT_FUNC(add_permit); 888 888 RPC_ADD_OPT_FUNC(add_deny); -
python/implugin.py
re9face7 rf8feb8a 16 16 # BitlBee which functions are actually implemented so omitted features 17 17 # will be disabled, but note that some/many functions are simply mandatory. 18 # (Currently login/-out, buddy_msg , add/remove_buddy.)18 # (Currently login/-out, buddy_msg.) 19 19 SUPPORTED_FUNCTIONS = [ 20 20 'login', 'keepalive', 'logout', 'buddy_msg', 'set_away', … … 119 119 self.bee.error("Ok bye!") 120 120 121 def add_buddy(self, handle, group):122 return False123 124 def remove_buddy(self, handle, group):125 return False126 127 121 def buddy_msg(self, handle, msg, flags): 128 122 feed = self.feeds[handle] -
root_commands.c
re9face7 rf8feb8a 647 647 irc_rootmsg(irc, "That account is not on-line"); 648 648 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; 649 652 } 650 653 … … 717 720 s = g_strdup(bu->handle); 718 721 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 720 729 nick_del(bu); 721 730 if (g_slist_find(irc->users, iu)) {
Note: See TracChangeset
for help on using the changeset viewer.