Ignore:
Timestamp:
2007-12-09T23:19:35Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3f2bc2d
Parents:
de03374
Message:

Added /invite support for Jabber chatrooms (and fixed the argument order
to chat_invite).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    rde03374 rc058ff9  
    427427}
    428428
     429static void jabber_chat_invite_( struct groupchat *c, char *who, char *msg )
     430{
     431        struct jabber_chat *jc = c->data;
     432        gchar *msg_alt = NULL;
     433
     434        if( msg == NULL )
     435                msg_alt = g_strdup_printf( "%s invited you to %s", c->ic->acc->user, jc->name );
     436       
     437        if( c && who )
     438                jabber_chat_invite( c, who, msg ? msg : msg_alt );
     439       
     440        g_free( msg_alt );
     441}
     442
    429443static void jabber_keepalive( struct im_connection *ic )
    430444{
     
    498512        ret->chat_msg = jabber_chat_msg_;
    499513        ret->chat_topic = jabber_chat_topic_;
    500 //      ret->chat_invite = jabber_chat_invite;
     514        ret->chat_invite = jabber_chat_invite_;
    501515        ret->chat_leave = jabber_chat_leave_;
    502516        ret->chat_join = jabber_chat_join_;
Note: See TracChangeset for help on using the changeset viewer.