aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorjgeboski <jgeboski@gmail.com>2015-01-28 18:40:47 -0500
committerjgeboski <jgeboski@gmail.com>2015-01-29 14:24:17 -0500
commit7821ee89fef7bae353b06fc4c23f3ab23093e5cc (patch)
treef406d02909d53bd8023a3653018ce9d95e38aea6 /protocols
parent7b8238d0c9f409deaa15147bc76fc77101cb52c3 (diff)
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.
Diffstat (limited to 'protocols')
-rw-r--r--protocols/nogaim.h5
1 files changed, 5 insertions, 0 deletions
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 *);