Changeset 522a00f for root_commands.c
- Timestamp:
- 2008-02-15T09:27:26Z (17 years ago)
- Branches:
- master
- Children:
- 27db433
- Parents:
- 6c91e6e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
root_commands.c
r6c91e6e r522a00f 86 86 return; 87 87 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 93 88 for( i = 0; commands[i].command; i++ ) 94 89 if( g_strcasecmp( commands[i].command, cmd[0] ) == 0 ) … … 97 92 { 98 93 irc_usermsg( irc, "Not enough parameters given (need %d)", commands[i].required_parameters ); 99 g_static_rec_mutex_unlock(&irc->otr_mutex);100 94 return; 101 95 } 102 96 commands[i].execute( irc, cmd ); 103 g_static_rec_mutex_unlock(&irc->otr_mutex);104 97 return; 105 98 } 106 99 107 100 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);109 101 } 110 102
Note: See TracChangeset
for help on using the changeset viewer.