Changeset e35d1a1 for root_commands.c


Ignore:
Timestamp:
2007-04-22T20:44:27Z (12 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
  • root_commands.c

    rc737ba7 re35d1a1  
    924924        if( cmd[3] && cmd[4] )
    925925                nick = cmd[4];
     926        else
     927                nick = irc->nick;
    926928        if( cmd[3] && cmd[4] && cmd[5] )
    927929                password = cmd[5];
    928930       
    929         c = a->prpl->chat_join( ic, chat, nick, password );
    930        
    931         g_free( channel );
     931        if( ( c = a->prpl->chat_join( ic, chat, nick, password ) ) )
     932        {
     933                g_free( c->channel );
     934                c->channel = channel;
     935        }
     936        else
     937        {
     938                irc_usermsg( irc, "Tried to join chat, not sure if this was successful" );
     939                g_free( channel );
     940        }
    932941}
    933942
Note: See TracChangeset for help on using the changeset viewer.