Skip to content

Added option to leave group#135

Open
KamalGalrani wants to merge 6 commits into
bitlbee:developmentfrom
KamalGalrani:development
Open

Added option to leave group#135
KamalGalrani wants to merge 6 commits into
bitlbee:developmentfrom
KamalGalrani:development

Conversation

@KamalGalrani

@KamalGalrani KamalGalrani commented Feb 25, 2017

Copy link
Copy Markdown
Contributor

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>

@KamalGalrani

KamalGalrani commented Feb 25, 2017

Copy link
Copy Markdown
Contributor Author

UPDATE:

To leave group chats using channel name

> fbleave facebook <channel_name>

Comment thread facebook/facebook.c
static void fb_cmd_fbchats(irc_t *irc, char **args);
static void fb_cmd_fbcreate(irc_t *irc, char **args);
static void fb_cmd_fbjoin(irc_t *irc, char **args);
static void fb_cmd_fbleave(irc_t *irc, char **args);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this whole block? Please don't include unrelated changes

@dequis

dequis commented Feb 25, 2017

Copy link
Copy Markdown
Member

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

@KamalGalrani

KamalGalrani commented Feb 26, 2017 via email

Copy link
Copy Markdown
Contributor Author

@gautelund

Copy link
Copy Markdown

I would like to see this feature. Can it be accepted or has something similar been implemented? Leaving facebook group chats.

@Thaodan

Thaodan commented Oct 21, 2020

Copy link
Copy Markdown
Contributor

Could you bridge it with /PART?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants