Ignore:
Timestamp:
2007-04-22T20:44:27Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
43671b9
Parents:
c737ba7
Message:

Read-only support for Jabber conferences (non-anonymous rooms only).
Just don't use this, you're really not going to like it. :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.c

    rc737ba7 re35d1a1  
    324324}
    325325
     326static struct groupchat *jabber_chat_join_( struct im_connection *ic, char *room, char *nick, char *password )
     327{
     328        if( strchr( room, '@' ) == NULL )
     329                imcb_error( ic, "Invalid room name: %s", room );
     330        else if( jabber_chat_by_name( ic, room ) )
     331                imcb_error( ic, "Already present in chat `%s'", room );
     332        else
     333                return jabber_chat_join( ic, room, nick, password );
     334       
     335        return NULL;
     336}
     337
     338static void jabber_chat_leave_( struct groupchat *c )
     339{
     340        if( c )
     341                jabber_chat_leave( c, NULL );
     342}
     343
    326344static void jabber_keepalive( struct im_connection *ic )
    327345{
     
    396414//      ret->chat_msg = jabber_chat_msg;
    397415//      ret->chat_invite = jabber_chat_invite;
    398 //      ret->chat_leave = jabber_chat_leave;
    399 //      ret->chat_open = jabber_chat_open;
     416        ret->chat_leave = jabber_chat_leave_;
     417        ret->chat_join = jabber_chat_join_;
    400418        ret->keepalive = jabber_keepalive;
    401419        ret->send_typing = jabber_send_typing;
Note: See TracChangeset for help on using the changeset viewer.