bitlbee-facebook
bitlbee-facebook copied to clipboard
Added option to leave group
This pull request fetches group chats automatically on login and adds an option to leave a group chat. You can only leave group chats that appear in fbchats
. To leave other groups first add them to fbchats
using chat add facebook <thread_id> #<channel>
Usage
To leave group chats using fbchats
index
> fbchats facebook
> fbleave facebook <index>
To leave group chats using thread id
> fbleave facebook <thread_id>
UPDATE:
To leave group chats using channel name
> fbleave facebook <channel_name>
Thanks but I'm not sure I like this approach. I'd prefer to reduce the amount of root commands added by this plugin - I was already working on removing fbjoin and fbchats.
Bitlbee specific code must not be used outside of facebook.c, since all the other files are shared with purple-facebook
The block is simply declaration of all the functions defined in facebook.c. I was using fb_cmd_fbchats in fb_login when I realized that the function is defined after fb_login. So I just put declaration of all the functions in the beginning of file for convenience. All but 2 declarations can be removed.
How are you planning to do away with fbjoin and fbchats?
I don't think there is any bitlbee specific code outside facebook.c in the pull request.
I would like to see this feature. Can it be accepted or has something similar been implemented? Leaving facebook group chats.
Could you bridge it with /PART?