From 7821ee89fef7bae353b06fc4c23f3ab23093e5cc Mon Sep 17 00:00:00 2001 From: jgeboski Date: Wed, 28 Jan 2015 18:40:47 -0500 Subject: irc_commands: implemented KICK support With similar commands being supported, such as INVITE, the KICK command should be supported as well. The key motivation behind supporting KICK is having for having a way to remove users from group chats. As of now, there is no way for a bitlbee user to remove a user from a group chat. With no current KICK implementation, it made using this command a prime candidate for the UI side of this implementation. In addition, the KICK command has been supported in the control channel as well. This is to keep the INVITE/KICK pair consistent. --- protocols/nogaim.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/nogaim.h') diff --git a/protocols/nogaim.h b/protocols/nogaim.h index d1711cde..a726b174 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -212,6 +212,11 @@ struct prpl { * - 'message' is a handle to invite */ void (* chat_invite) (struct groupchat *, char *who, char *message); + /* This is called when the user uses the /kick IRC command. + * - 'who' is a handle to kick + * - 'message' is a kick message or NULL + */ + void (* chat_kick) (struct groupchat *, char *who, const char *message); /* This is called when the user uses the /part IRC command in a group * chat. You just should tell the user about it, nothing more. */ void (* chat_leave) (struct groupchat *); -- cgit v1.2.3