Changeset 522a00f for root_commands.c


Ignore:
Timestamp:
2008-02-15T09:27:26Z (17 years ago)
Author:
Sven Moritz Hallberg <sm@…>
Branches:
master
Children:
27db433
Parents:
6c91e6e
Message:

remove thread-based keygen
replace it with a process-based stub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r6c91e6e r522a00f  
    8686                return;
    8787       
    88         if(!g_static_rec_mutex_trylock(&irc->otr_mutex)) {
    89                 irc_usermsg(irc, "keygen in progress, bitlbee comatose - please wait");
    90                 return;
    91         }
    92        
    9388        for( i = 0; commands[i].command; i++ )
    9489                if( g_strcasecmp( commands[i].command, cmd[0] ) == 0 )
     
    9792                        {
    9893                                irc_usermsg( irc, "Not enough parameters given (need %d)", commands[i].required_parameters );
    99                                 g_static_rec_mutex_unlock(&irc->otr_mutex);
    10094                                return;
    10195                        }
    10296                        commands[i].execute( irc, cmd );
    103                         g_static_rec_mutex_unlock(&irc->otr_mutex);
    10497                        return;
    10598                }
    10699       
    107100        irc_usermsg( irc, "Unknown command: %s. Please use \x02help commands\x02 to get a list of available commands.", cmd[0] );
    108         g_static_rec_mutex_unlock(&irc->otr_mutex);
    109101}
    110102
Note: See TracChangeset for help on using the changeset viewer.