static int get_binds_index(char first_char) {
if(tolower(first_char) >= 'a' && tolower(first_char) <= 'z') {
- return tolower(first_char - 'a');
+ return tolower(first_char) - 'a';
}
return 26;
}
}
struct cmd_binding *cbind;
for(cbind = cmd_binds[bind_index]; cbind; cbind = cbind->next) {
- if(cbind->botid == client->botid && strcmp(cbind->cmd, message) == 0) {
+ if(cbind->botid == client->botid && stricmp(cbind->cmd, message) == 0) {
//get a text bot
tmp_text_client = get_prefered_bot(client->botid);
//parse the arguments...