From 92be98c305c4888e5842c44d100e04a5aad4da25 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 10 Feb 2014 13:58:38 -0200 Subject: [PATCH] bindatcommands are now case-insenstivie (just like normal @commands) As proposed by kyeme in http://hercules.ws/board/topic/2101-bind-commands/ Signed-off-by: shennetsind --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 6177fad2324..2849ada0bf4 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -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; }