diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-09 23:54:09 +0000 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-09 23:54:09 +0000 | 
| commit | 7adc657830fe76df344bf718df45ca05cc015d4e (patch) | |
| tree | 14a5e47957a9529f7e63471c6a5ee892effc3259 /root_commands.c | |
| parent | c84e31ae1e972a327b103ada52cae6a2e2335767 (diff) | |
Restored "add -tmp". A bit hackish, but it will do for now.
Diffstat (limited to 'root_commands.c')
| -rw-r--r-- | root_commands.c | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/root_commands.c b/root_commands.c index 26a42a25..8e315bd4 100644 --- a/root_commands.c +++ b/root_commands.c @@ -448,7 +448,7 @@ static void cmd_add( irc_t *irc, char **cmd )  	if( g_strcasecmp( cmd[1], "-tmp" ) == 0 )  	{  		add_on_server = 0; -		cmd ++;		/* So evil... :-D */ +		cmd ++;  	}  	if( !( a = account_get( irc, cmd[1] ) ) ) @@ -480,12 +480,13 @@ static void cmd_add( irc_t *irc, char **cmd )  		}  	} -	/* By making this optional, you can talk to people without having to -	   add them to your *real* (server-side) contact list. */  	if( add_on_server )  		a->ic->acc->prpl->add_buddy( a->ic, cmd[2], NULL ); -	 -	/* add_buddy( a->ic, NULL, cmd[2], cmd[2] ); */ +	else +		/* Yeah, officially this is a call-*back*... So if we just +		   called add_buddy, we'll wait for the IM server to respond +		   before we do this. */ +		imcb_add_buddy( a->ic, cmd[2], NULL );  	irc_usermsg( irc, "Adding `%s' to your contact list", cmd[2]  );  } | 
