diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-22 13:44:27 -0700 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-04-22 13:44:27 -0700 | 
| commit | e35d1a121d5fb2da3698fbe4a365fe38d0097665 (patch) | |
| tree | 390223f2df5aaaebb35c1bb118cbf2fbd69ecab9 /root_commands.c | |
| parent | c737ba70c7b3510ffb6bed8f9373e63b1a150c1b (diff) | |
Read-only support for Jabber conferences (non-anonymous rooms only).
Just don't use this, you're really not going to like it. :-)
Diffstat (limited to 'root_commands.c')
| -rw-r--r-- | root_commands.c | 15 | 
1 files changed, 12 insertions, 3 deletions
| diff --git a/root_commands.c b/root_commands.c index a7582936..2b57fb4f 100644 --- a/root_commands.c +++ b/root_commands.c @@ -923,12 +923,21 @@ static void cmd_join_chat( irc_t *irc, char **cmd )  	}  	if( cmd[3] && cmd[4] )  		nick = cmd[4]; +	else +		nick = irc->nick;  	if( cmd[3] && cmd[4] && cmd[5] )  		password = cmd[5]; -	c = a->prpl->chat_join( ic, chat, nick, password ); -	 -	g_free( channel ); +	if( ( c = a->prpl->chat_join( ic, chat, nick, password ) ) ) +	{ +		g_free( c->channel ); +		c->channel = channel; +	} +	else +	{ +		irc_usermsg( irc, "Tried to join chat, not sure if this was successful" ); +		g_free( channel ); +	}  }  const command_t commands[] = { | 
