Skip to content

Commit

Permalink
bindatcommands are now case-insenstivie (just like normal @commands)
Browse files Browse the repository at this point in the history
As proposed by kyeme in http://hercules.ws/board/topic/2101-bind-commands/

Signed-off-by: shennetsind <ind@henn.et>
  • Loading branch information
shennetsind committed Feb 10, 2014
1 parent 51805d1 commit 92be98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/atcommand.c
Expand Up @@ -64,7 +64,7 @@ struct atcmd_binding_data* get_atcommandbind_byname(const char* name) {
if( *name == atcommand->at_symbol || *name == atcommand->char_symbol )
name++; // for backwards compatibility

ARR_FIND( 0, atcommand->binding_count, i, strcmp(atcommand->binding[i]->command, name) == 0 );
ARR_FIND( 0, atcommand->binding_count, i, strcmpi(atcommand->binding[i]->command, name) == 0 );

return ( i < atcommand->binding_count ) ? atcommand->binding[i] : NULL;
}
Expand Down

0 comments on commit 92be98c

Please sign in to comment.