diff options
author | Wilmer van der Gaast <wilmer@google.com> | 2010-08-23 11:34:36 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@google.com> | 2010-08-23 11:34:36 +0100 |
commit | 1aa74f559af18e06195f34b721d65d69c29fcc0f (patch) | |
tree | bd3dbb8bd3e86c1d885e2d3ef245ec6091c31040 /protocols/bee_chat.c | |
parent | 241f9f6d9135048578ad603485740b73402edd8a (diff) |
Process incoming XMPP groupchat invites in a saner way: Create a temporary
channel the user can easily /join.
Diffstat (limited to 'protocols/bee_chat.c')
-rw-r--r-- | protocols/bee_chat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/bee_chat.c b/protocols/bee_chat.c index 3be6f189..0314cae5 100644 --- a/protocols/bee_chat.c +++ b/protocols/bee_chat.c @@ -232,3 +232,11 @@ struct groupchat *bee_chat_by_title( bee_t *bee, struct im_connection *ic, const return NULL; } + +void imcb_chat_invite( struct im_connection *ic, const char *name, const char *who, const char *msg ) +{ + bee_user_t *bu = bee_user_by_handle( ic->bee, ic, who ); + + if( bu && ic->bee->ui->chat_invite ) + ic->bee->ui->chat_invite( ic->bee, bu, name, msg ); +} |