From 522a00f1b1163cedf15a86329c0097601eb7940b Mon Sep 17 00:00:00 2001 From: Sven Moritz Hallberg Date: Fri, 15 Feb 2008 10:27:26 +0100 Subject: remove thread-based keygen replace it with a process-based stub --- root_commands.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'root_commands.c') diff --git a/root_commands.c b/root_commands.c index 04c62fea..9b492048 100644 --- a/root_commands.c +++ b/root_commands.c @@ -85,27 +85,19 @@ void root_command( irc_t *irc, char *cmd[] ) if( !cmd[0] ) return; - if(!g_static_rec_mutex_trylock(&irc->otr_mutex)) { - irc_usermsg(irc, "keygen in progress, bitlbee comatose - please wait"); - return; - } - for( i = 0; commands[i].command; i++ ) if( g_strcasecmp( commands[i].command, cmd[0] ) == 0 ) { if( !cmd[commands[i].required_parameters] ) { irc_usermsg( irc, "Not enough parameters given (need %d)", commands[i].required_parameters ); - g_static_rec_mutex_unlock(&irc->otr_mutex); return; } commands[i].execute( irc, cmd ); - g_static_rec_mutex_unlock(&irc->otr_mutex); return; } irc_usermsg( irc, "Unknown command: %s. Please use \x02help commands\x02 to get a list of available commands.", cmd[0] ); - g_static_rec_mutex_unlock(&irc->otr_mutex); } static void cmd_help( irc_t *irc, char **cmd ) -- cgit v1.2.3