Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added option to leave group #135

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

KamalGalrani
Copy link
Contributor

@KamalGalrani KamalGalrani commented Feb 25, 2017

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
Copy link
Contributor Author

KamalGalrani commented Feb 25, 2017

UPDATE:

To leave group chats using channel name

> fbleave facebook <channel_name>

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
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
Copy link
Member

dequis commented Feb 25, 2017

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
Copy link
Contributor Author

KamalGalrani commented Feb 26, 2017 via email

@gautelund
Copy link

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

@Thaodan
Copy link
Contributor

Thaodan commented Oct 21, 2020

Could you bridge it with /PART?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants